I want to change bar color in pocket query template which is written as below, default color is blue but i want to change as per my requirement. Please suggest.
<script>PocketQuery.chart('ColumnChart', { title: ''Test", width: 500, height: 450, showTip: true});
Hi Chandra,
Thank you for using PocketQuery!
To change the bar color, you simply need one more line of code:
<script> PocketQuery.chart('ColumnChart', { title: "Test", width: 500, height: 450, showTip: true, colors:['#ff0000'] }); </script>
Does this work for you?
Please let me know, if you need further help!
Best regards,
Carla
Did my answer solve your issue? If it did, it would be very helpful if you could "accept" it - that way other users can see at the first glance that this question has a working solution.
HI Harth,
Your answer has helped me to resolve the one point, is it possible to force barchart to start from 0 always and then accordingly it will create bar, instead of start it from some base value which is the lowest value like I have value starting from 52 so my bar chart starts from 50 instead of 0, and next value I have for other graph is 55, though the difference is not much but in graph its big, becuase graphs start from 50 not 0, could you please help me in this.
Hi Kulbhushan,
are we talking about a BarChart or a ColumnChart? Additionally, a screenshot of how your chart looks like right now and the code of your template would be really helpful.
There are options like "vAxis: {minValue: 0}" and "<span class="pln">vAxis</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{</span><span class="pln">viewWindow</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{m</span><span class="pln">in</span><span class="pun">:</span><span class="lit">0</span><span class="pun">}}</span>" and maybe they do what you need. But I can't say that for sure without some more details about your current setup.
<span class="pln">vAxis</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{</span><span class="pln">viewWindow</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{m</span><span class="pln">in</span><span class="pun">:</span><span class="lit">0</span><span class="pun">}}</span>
Please, feel free to open a new question here on answers using the label "addon-de.scandio.confluence.plugins.pocketquer". Then we can get into more details there.
Regards,
It looks like you're new here. Sign in or register to get started.