Jump to content
Software FX Community

How to assign the pie chart data to div tag


Recommended Posts

Not sure what you mean, perhaps you want to wrap a Pie around a div tag (?). If so,  you may do the following:

<div>   Create Pie Chart here if you are using a control or   use <img src="path"> if you are using an image</div>On the other hand, if you need to retrieve data from a pie chart and displayed it in a div tag, there is no way to do this by reading the data from the pie chart, you may create a grid control and connect it to the same data source your chart is connected.

Link to comment
Share on other sites


This is my code I wrote this code in page load.

I am getting the static value. i have to change the dynamic where can i bind the data.

on mouse move to i have to get the label points how do i get it?

string sSecutiry = string.Empty; 

sSecutiry = chartpie.Points[0, 0].Text;

chartpie.AllSeries.Link.OnMouseOver = "ShowContent('" + sSecutiry + "');";

chartpie.AllSeries.Link.OnMouseOver = "ShowContent('" + chartpie.Points[0, MouseMove.Point].Text + "');";

chartpie.AllSeries.Link.OnMouseOut = "HideContent('uniquename4'); return true;";

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...