JQPlot堆叠栏每个堆叠标签计数的积累,而不是(增量)计 [英] JQPlot stacked bar each stacked label count instead of accumulation (incremental) count

查看:129
本文介绍了JQPlot堆叠栏每个堆叠标签计数的积累,而不是(增量)计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示每个标签在总段代替标签文本。

I want to display label text in stead of segment total for each label.

一样,2,7,14应在堆放酒吧,2,7,14,然后23总。但是,目前在〔实施例它显示总段 - 第一栏是空的,然后2,2 + 7 = 9,和总= 23(9 + 14)

Like, 2, 7, 14 should be in stacked bar with 2, 7, 14 and then 23 is total. But currently in exmaple it is showing segment total - first bar is empty and then 2, 2+7=9, and total = 23 (9+14).

JQ图显示(堆积栏柱图 - 第3图):
http://www.jqplot.com/tests/bar-charts.php

JQ Plot shows (stacked bar column graph - 3rd graph): http://www.jqplot.com/tests/bar-charts.php

我要像这个网址一样highchart的标签数见例如:
<一href=\"http://www.highcharts.com/demo/column-stacked\">http://www.highcharts.com/demo/column-stacked

I want like this url like highchart for label count see example: http://www.highcharts.com/demo/column-stacked

请让我知道如果我能解决去那么这将是很大的帮助...

Please let me know if I can go with solution then it would be great help...

推荐答案

我有这方面的解决方案,因为它似乎是独立的 stackedValue 参数值的价值的堆叠条形总是总结出来的。

I have a solution for it as it seems that independent of the value of the stackedValue parameter the values of the stacked bars are always summed up.

我解决了这个问题涉及:

My solution to this problem involved:


  • 再增加一个系列里面充当的总和,价值填写它都是相同的(即3)作为其唯一的作用是将标签的位置,

  • adding of one more series which serves as the sum, the values you fill it with are all the same (i.e. 3) as their only role is to position the labels,

使得最后一个系列(5日)无形的,它的影子几乎是透明的,

making the last series (5th) invisible and its shadow nearly transparent,

和使用上的每个系列标签,而不是直接让脚本决定把什么就有什么,否则这显然总结值。

and using the labels on each series directly rather than letting the script decide what to put there, otherwise it would obviously sum up the values.

我的解决方案可以在这里找到。

修改

我最近发现,有已经是可以在这里找到一个解决这个问题。

这篇关于JQPlot堆叠栏每个堆叠标签计数的积累,而不是(增量)计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆