Welcome Guest Search | Active Topics |

First plot is not indicated in LineChart.
Junya
#1 Posted : Tuesday, November 15, 2016 2:11:46 AM(UTC)
Rank: Member

Groups: jQueryChart, Registered
Joined: 6/3/2013(UTC)
Posts: 13

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

It seems that the first plot is not indicated in the following conditions.
- data count is over 1000
- value of first plot is 0
- 'markers' option is set to null
Is there a way to prevent this from happening?

Code:

$(function() {
    $('#JqChart').jqChart({
        title : { text : 'Line Chart' },
        animation : { duration : 1 },
        axes: [
            {
                type : 'linear',
                location : 'bottom',
                zoomEnabled : true
            },
            {
                type : 'linear',
                location : 'left',
                zoomEnabled : true
            }
        ],
        series : [
            {
                type : 'line',
                title : 'Series 1',
                strokeStyle : '#418CF0',
                lineWidth : 2,
                markers : null, // markers option
                data : createData(),
            }
        ]
    });
});

function createData() {
    var data = [];
    var loop = 1001; // data count
    var first = 0; // first plot value

    data.push([0, first]);
    for (var i = 1; i < loop; i++) {
        data.push([i, Math.random() * 10]);
    }
    return data;
}


Thanks.
Dragan
#2 Posted : Wednesday, November 16, 2016 6:36:40 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)
This is an issue in our code. We'll send you a fixed version via email this week.
Best Regards,
Dragan Matek
jqChart Inc.
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.057 seconds.