简体   繁体   中英

JQPlot - Show real input value in pointLabels label instead of point location

How can I set pointLabels to show input value instead of point location ?

Now labels are like this : 在此处输入图片说明

mean labels are :
16% 19%
3% 7%
4% 11%
4% 7%

but I want to show like this :
16% 3%
3% 4%
4% 7%
4% 3%

mean each bar to show its own inputed percent value

I have a few answers to a similar problems (or with samples related to your problem). They might be found below:

  1. Vertical stacked bar chart with sums on top.
  2. Horizontal stacked bar chart with links on bottom most bars.
  3. Vertical stacked bar chart with sums on top and with a custom tooltip.

Basically, the approach I used , since the plot options were not working, was to set the point labels myself to appropriate values .

This is a known issue, reported here , there seem to be some hacks but back then I tried the first recommended patch and it didn't help me. Yesterday someone posted another option maybe this one does work, though I didn't test it since I chose to stick to my solution, at least currently until it is fixed in the official release.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM