Jump to content
Software FX Community

Assign an image to the Top of the Bar Chart for a Particular Data Point


Subha

Recommended Posts

Bar charts don't natively support markers such as pictures.

You can achive this by creating an extra series with the same data (or slightly above) and giving that series a Scatter gallery. The Scatter gallery supports many types of markers includding a picture:

chart1.Series[1].Gallery = Gallery.Scatter; 

chart1.Series[1].MarkerShape = MarkerShape.Picture;

chart1.Series[1].MarkerSize = 10;

chart1.Series[1].Picture =

Image.FromFile(imageFileName);
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.

×
×
  • Create New...