Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Chart - dataset.label(org.eclipse.rap.chartjs to show the indicator)
RAP Chart - dataset.label [message #1849923] |
Tue, 08 February 2022 15:21 |
David Lee Messages: 81 Registered: May 2013 |
Member |
|
|
Hello,
I am using org.eclipse.rap.chartjs as our RAP chart provider.
My question is:
When using Bar chart to show data for every months of 3 years, we'll specify 3 colors for the 3 years, each color represents one year(12 bars), then how to show "labels & years" on the top of the chart?
It usually looks like a small square filled with a color(same as its corresponding bars'), and followed with the year number right side, users can tell which color is which year by "labels & years" indicator.
I know It's like setting "chart.data.datasets[x].label" in Chart.js, I also modified function toJson() in ChartRowData.java, added '.add( "label", "2021")', the "label" can be received by Chart.js, but never shows "labels & years" indicator on the top of chart.
I don't know much of JavaScript.
How can I achieve that?
Thank you!
David Lee
[Updated on: Tue, 08 February 2022 15:25] Report message to a moderator
|
|
| | | | | | | | |
Goto Forum:
Current Time: Sat Nov 09 01:29:06 GMT 2024
Powered by FUDForum. Page generated in 0.04130 seconds
|