JqPlot displays y-ticks twice

using two DateAxisSeries (on the x axis) with normal integer values ​​on the y axis my jqPlot displays y-ticks twice.

Like this:

2|
2|
1|
1|
0|______________________________________

This leads to the fact that the values ​​are not displayed correctly, except that this obviously should not happen.

Series 1: [["07.03.2012", 2], ["17.03.2012", 2], ["28.03.2012", 1]]

Series 2: [["01.03.2012", 1], ["08.03.2012", 1], ["14.03.2012", 1], ["24.03.2012", 1]]

+3
source share
2 answers

I have never had a chart with two Date axes, but I suspect that the problem you are facing is the same as for one.

, ? . , .

, -, , .

0

y-axis formatString? , formatString = '% d', y 1.5 1.

, / yaxis formatString tickInterval,

yaxis: {
    min:          0,
    max: {{ max_count }} + 1,
    tickInterval: 1,
    tickOptions:  {
        formatString:'%d'
    }
}
+2

All Articles