2012-06-23 68 views

回答

4

可以在jqPlot做多:

  1. 最容易:设置legendlabels元素字符串数组将显示在你的传奇,shown here
  2. 自己动手,如样本attached to this answer所示。在那里,我使用$.jqplot.postDrawHooks来完成图表的操作,因为我还需要对图例标签进行一些定制,所以我一路走过去(即我没有设置labels元素)。
1
<script src="JqPloatChart/plugins/jqplot.pointLabels.js"></script> 
seriesDefaults: {renderer: $.jqplot.BarRenderer,pointLabels: { show: true },rendererOptions: {showDataLabels: true,}}, 
+0

请加 的文件,并写入渲染jqplot选项。 –

+0

尽管此代码片段可能会解决问题,但[包括解释](// meta.stackexchange.com/questions/114762/explaining-entirely-code-based-answers)确实有助于提高帖子的质量。请记住,您将来会为读者回答问题,而这些人可能不知道您的代码建议的原因。也请尽量不要使用解释性注释来挤占代码,因为这会降低代码和解释的可读性! – FrankerZ

相关问题