JQPlot stacked bar each stacked label count instead of accumulation (incremental) count

后端 未结 4 414
不知归路
不知归路 2021-01-12 20:17

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

Like, 2, 7, 14 should be in stacked bar with 2, 7, 14 and then 23 is total. But currently in e

4条回答
  •  再見小時候
    2021-01-12 20:22

    To display the values inside the bar just modify css .jqplot-point-label property on local page, this works in the JQPlot demo page:

    .jqplot-point-label {
          font-size:.75em;
          z-index: 2;
          /* Add some margin to get values into the bar */
          margin-top: 24px;
    }
    

    You can also try PointLabel properties like ypadding for a more polite approach. For sum features refer to this solved thread.

提交回复
热议问题