Jump to content
Software FX Community

How to add images to a point - Bubble Chart


Harish
 Share

Recommended Posts

I want to add different image to points, based on the directions( North, South, East, West) in bubble chart.  I have attached a sample chart below. In the below example, the "Arrow" image specifies different directions. And also how to give different color to 4 quadrent as show in the image below.

Link to comment
Share on other sites

I think you can do this by setting the picture property on the point.

Let me give you an example:

<Chart> is your chart instance

<Series#> is the number to your series

<Point#> is the point you wish to change

<Image> is the string location to the image.
C# line of code.

<Chart>.Points[<Series#>,<Point#>].Picture = System.Drawing.Image.FromFile(<Image>);

 This should replace the marker with the picture. In your case, you are going to have to enumerate through each point, check it's value, and then set your image based off that value so you can get your desired results. If I'm not mistaking, I think the value of a point is the text property. I could be wrong, but this should be enough to get you going. :-D

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.

Guest
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.

 Share

×
×
  • Create New...