Click here to Skip to main content
14,392,303 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all,
I am using very tiny chart i.e. the width and hight of chart area is 100 px and 25 px .
In that i am using the single series.But I want to show custome labels in that.So how can i do it?????
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

Use a pop-up.

I'm not sure what you're working in (WinForms, ASP.NET, Silverlight, etc) but at 100x25, with a series already charted, you'll not have much room for text.

If you're generating the text yourself and do wish to have it on the image, you'll need to paint it on yourself using the Graphics object (using the DrawString method).

Cheers.
   
Comments
YOGESH DHAGE 23-Sep-10 4:23am
   
Thanks for reply sir,
Actually i am working on ASP.NET.and i am using chart control on web page but the custom labels are no where to be seen if i apply it to perticular data point the width and hight is 100 px and 50 px so how can i resolve this problem???
YOGESH DHAGE 23-Sep-10 4:23am
   
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
Rate this:
Please Sign up or sign in to vote.

Solution 2

For a good looking, stylable tooltip that you can generate server-side and display on the client you'll need to write a bit of script. You'll also need to generate the image map.

Have a look at the sample here[^] at the bottom of the page. You can view the page source to see how it was created. This is a jQuery plugin, so you'll need to grab jQuery and the bassistance plugin from the above demo.

Cheers.
   
Comments
YOGESH DHAGE 24-Sep-10 3:01am
   
Yes Sir,
This is great option sir, but i want to show milestones stationary (fix). I had already use bitmap i.e image to show labels, But it shows blur text.What exactly I am doing is I am showing sparkline with the help of chart control.In that I want to show Milestones.
TheyCallMeMrJames 24-Sep-10 9:56am
   
Can you create a graphic in PhotoShop of what you expect to see and post a link to it? I'm having trouble envisioning what you're looking for, but would be happy to help if you can 'shop something together. Cheers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100