2
是否可以在图例中显示标签的值?jqplot - 如何在图例中显示标签的值?
是否可以在图例中显示标签的值?jqplot - 如何在图例中显示标签的值?
可以在jqPlot
做多:
legend
labels
元素字符串数组将显示在你的传奇,shown here。$.jqplot.postDrawHooks
来完成图表的操作,因为我还需要对图例标签进行一些定制,所以我一路走过去(即我没有设置labels
元素)。<script src="JqPloatChart/plugins/jqplot.pointLabels.js"></script>
seriesDefaults: {renderer: $.jqplot.BarRenderer,pointLabels: { show: true },rendererOptions: {showDataLabels: true,}},
请加 的文件,并写入渲染jqplot选项。 –
尽管此代码片段可能会解决问题,但[包括解释](// meta.stackexchange.com/questions/114762/explaining-entirely-code-based-answers)确实有助于提高帖子的质量。请记住,您将来会为读者回答问题,而这些人可能不知道您的代码建议的原因。也请尽量不要使用解释性注释来挤占代码,因为这会降低代码和解释的可读性! – FrankerZ