Welcome Guest Search | Active Topics |

Limit number of labels on X axis
Voltegirev
#1 Posted : Monday, August 14, 2017 7:12:19 AM(UTC)
Rank: Newbie

Groups: jQueryDV, Registered
Joined: 6/8/2017(UTC)
Posts: 9

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hello,

is there a way to limit number of labels on X axis? Like here:


I'd like to leave just the first line as "2017-03-06 00", "2017-03-06 08", "2017-03-06 16" and so on.

Data looks something like this:

series: [
{
type: 'column',
title: 'Series 1',
fillStyle: '#418CF0',
data: [['2017-08-14 00', 33], ['2017-08-14 01', 57], ['2017-08-14 02', 33],
['2017-08-14 03', 12], ['2017-08-14 04', 35], ['2017-08-14 05', 7], ['2017-08-14 06', 24]]
}
Dragan
#2 Posted : Monday, August 14, 2017 7:23:48 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:
  axes: [
                    {
                        location: 'bottom',
                        labels: {
                            resolveOverlappingMode: 'hide'
                        }
                    }
                ],..


http://www.jqchart.com/docs/jquery/#!/api/Common.AxisLabels-cfg-resolveOverlappingMode
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
Voltegirev on 8/14/2017(UTC)
Users browsing this topic
Guest
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.139 seconds.