How to add zoom IN/ZOOM out functionity into chart control

耗尽温柔 提交于 2019-12-11 19:46:49

问题


I have created chart using microsoft chart control.

Below is the stuff.

 <asp:Chart ID="dntdata" runat="server" Height="130px" Width="134px" Visible="false">
            <Series>
                <asp:Series Name="Series1" ChartType="Doughnut" IsValueShownAsLabel="True" LabelForeColor="White" Font="Verdana,5pt">
                    <Points>
                    </Points>
                </asp:Series>

            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" Area3DStyle-Enable3D="True">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>

I need to add - ZOOM IN/ZOOM OUT functionality into this chart image. Please suggest me how i could achieve this ?

Share me some stuff it would be helpful.

if ANY ONE can achieve though JQUERY then also fine.

thank You


回答1:


In my opinion, you could use the URL property of a single data-point (this property: http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.datapointcustomproperties.url(v=vs.110).aspx

With this, you can define a target URL which is called when a user clicks on the data point, then you can render a detailed chart for the selected point.

Hope that helps, Chris



来源:https://stackoverflow.com/questions/23004315/how-to-add-zoom-in-zoom-out-functionity-into-chart-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!