作者:mobiledu2502875123 | 来源:互联网 | 2023-05-18 13:53
Weareusingnnnickchart.js(opensourcechart)inourapplicationforreportingpurpose.Thereisa
We are using nnnick chart.js (open source chart) in our application for reporting purpose.There is a requirement to show the Custom tool-tip in the line chart.
我们在申请中使用nnnick chart.js(开源图表)进行报告。需要在折线图中显示自定义工具提示。
As of now , Normal chart tooltip is showing based on the X-axis and Y axis dataset values. But Here we want to show the Dynamic additional data in the Tooltip. For Example , Let us take a Student Enrollment . here X Axis Value - Enrollment Month (Jan,Feb,Mar....etc) Y Axis Value - Number of Enrollments (10,20,30...ect)
截至目前,正常图表工具提示基于X轴和Y轴数据集值显示。但是,我们要在工具提示中显示动态附加数据。例如,让我们参加学生注册。这里X轴价值 - 入学月份(1月,2月,3月等)Y轴价值 - 入学人数(10,20,30 ...等)
After the Line chart is plotted , Now it is displaying (Jan ,10) in the tooltip. We have to show the Number of Male & Female student details in the tool tip On mouse over the data point Jan 10 (i.e) (Jan,10, Male:5 , Female 5 ).
绘制折线图后,现在它在工具提示中显示(Jan,10)。我们必须在工具提示中显示男女学生的详细信息。鼠标悬停在数据点1月10日(即)(1月10日,男性:5,女性5)。
If you see the above screen shot , Green color is toop-tip is the normal one which is a built-in option. Red Color highlighted tool-tip is the one we are expecting.
如果你看到上面的屏幕截图,绿色是toop-tip是正常的,它是一个内置选项。红色突出显示的工具提示是我们期待的。
Please provide any suggestion on this .
请提供任何建议。
1 个解决方案