如何添加放大/缩小functionity成图表控件 [英] How to add zoom IN/ZOOM out functionity into chart control
问题描述
我一直在使用微软图表控件创建的图表。
I have created chart using microsoft chart control.
下面是一个东西。
<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.
如果任何一个可以实现,虽然JQUERY随后还不错。
if ANY ONE can achieve though JQUERY then also fine.
感谢您
推荐答案
在我看来,你可以使用一个单一的数据点的URL属性(此属性:<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.datapointcustomproperties.url%28v=vs.110%29.aspx\" rel=\"nofollow\">http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.datapointcustomproperties.url(v=vs.110).aspx
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
通过这个,你可以定义这是当用户点击数据点称为目标URL,那么你就可以渲染的详细图表所选择的点。
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
这篇关于如何添加放大/缩小functionity成图表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!