jQuery UI Widgets › Forums › Chart › JqxChart Customized Label
This topic contains 5 replies, has 2 voices, and was last updated by Hristo 8 years, 5 months ago.
-
Author
-
I’m having difficult finding an usage of label with option ‘custom’
Can someone please let me know how to use them.
Thank you.Hello xair0811,
You could find more in our ‘Web Demos’ section and also in our API Documentation.
Please, take a look at those demos:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_axis_settings.htm?arctic
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_custom_offsets.htm?arcticBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comLet’s say there’s a graph with x and y axis.
And a point {x: 1, y: 10, value: ‘A’}
I want to label this point by value attribute not x/y axis value.
I have checked that i need to set the attribute for ‘label’ as ‘custom’
and defined the custom value as an array. However, it doesn’t seem working.
http://jsfiddle.net/jqwidgets/7RDBc/
here’s the example that i was working on.
Could anyone explain me how to show label for specific bars(not all) that i have indicated in the custom array.
Thank you.Hello xair0811,
You could try to use formatFunction callback (could use in both axis). It is possible to use some outer data source.
I am not sure to understand you correct but please, take a look at this example:
http://jsfiddle.net/z30t4h67/Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHello,
i’m sorry with incorrect question.
i want to label like this demo.(http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/index.htm#demos/jqxchart/javascript_line_series_symbol_type.htm)
in this demo, label is value at each point.
but, i want to label other value in same dataset.
like previus reply,
if i had a dataset like {x: 1, y: 10, value: ‘A’},
in x-axis label is 1, y-axis label is 10, and point label have to ‘A’.
How can i display ‘A’ on each chart point?
Thank you.Hello xair0811,
I would like to recommend you to look for “formatFunction” callback.
On that way you could find out and use more suitable way to present your data.
Please, take a look at this example:
http://jsfiddle.net/txhi/5mjt5qo8/Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.