是否可以在图例中显示标签及其值?
问问题
6359 次
2 回答
4
You can do it and more in jqPlot
:
- Easiest: Set
labels
element oflegend
to an array of Strings that will be displayed in your legend, shown here. - Do it yourself, as it is shown in the sample, attached to this answer. There I used
$.jqplot.postDrawHooks
to act when graph is finished, since I also needed to do some customization of the legend labels, so I went all the way (i.e. I didn't set thelabels
element).
于 2012-06-23T08:39:55.060 回答
1
<script src="JqPloatChart/plugins/jqplot.pointLabels.js"></script>
seriesDefaults: {renderer: $.jqplot.BarRenderer,pointLabels: { show: true },rendererOptions: {showDataLabels: true,}},
于 2016-07-27T12:00:51.820 回答