Welcome Guest Search | Active Topics |

Legend items order in bar chart
samje
#1 Posted : Monday, May 8, 2017 1:37:02 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/8/2017(UTC)
Posts: 4

Thanks: 2 times
Was thanked: 0 time(s) in 0 post(s)
Hey,

Is it possible to have legend items and bars in same order from top to bottom? Currently when I have horizontal bars, the top-most bar is always the one which is the last in the legend list. I need to have the same order, first in the chart, first in the legend, thanks!
Dragan
#2 Posted : Monday, May 8, 2017 8:00:35 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

You can reverse the left axis with:

Code:
axes: [
                    {
                        location: 'left',
                        reversed: true
                    }
                ],


Or you can use our custom legend to put the legend items in your way:
http://www.jqchart.com/jquery/chart/ChartFeatures/CustomLegend
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
samje on 5/9/2017(UTC)
samje
#3 Posted : Tuesday, May 9, 2017 6:43:48 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/8/2017(UTC)
Posts: 4

Thanks: 2 times
Was thanked: 0 time(s) in 0 post(s)
Hi, thanks for reply. The vertical bars are currently centered very narrowly in the chart, leaving a lot of space on top and bottom, is it possible to make them use more space making the bars wider? Thanks.
Dragan
#4 Posted : Tuesday, May 9, 2017 7:53:02 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
You can use:
Code:

{
     type: 'bar',
     pointWidth: 0.5,
     ....
}


http://www.jqchart.com/docs/jquery/#!/api/Chart.Series.Bar-cfg-pointWidth
Best Regards,
Dragan Matek
jqChart Inc.
samje
#5 Posted : Monday, August 14, 2017 5:03:39 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/8/2017(UTC)
Posts: 4

Thanks: 2 times
Was thanked: 0 time(s) in 0 post(s)
Hi again,

is it possible to have http://www.jqchart.com/j...art/ChartTypes/BarChart this kind of barchart to have the bars in same order as the legend per row? Custom legends here are not really an option for me. Thanks.
Dragan
#6 Posted : Monday, August 14, 2017 7:17:53 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

Currently, this can be done only with custom legend.
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
samje on 8/14/2017(UTC)
Users browsing this topic
Guest (5)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.091 seconds.