Forum Replies Created by Sunil Urs

Viewing 15 posts - 211 through 225 (of 548 total)
  • in reply to: Axis-Title to close to Axis-Label #6349

    Helge,

    I’ll look into this issue and get back at the earliest. Thanks for the jsfiddle.


    Sunil Urs

    in reply to: xValueType "dateTime" Bug #6348

    eniman,

    Date / timestamp values should be assigned to x and not to lables. Here you can see it working. If required you can further customize the lables and tooltips using valueFormatString & xValueFormatString properties.


    Sunil Urs

    in reply to: gridThickness bug #6344

    Those are ticks. You need to set tickLength to 0. Check this one.

    in reply to: Problem with asp.net #6339

    Can you please create a minimal ASP.Net solution that can reproduce the issue so that I can have a look?


    Sunil Urs

    in reply to: dynamic data points #6337

    Here you have already passed the dataPoints value and hence the chart will be rendered with all the dataPoints.

    To create a dynamic chart, you will have to create and assign dataPoints to a pre-defined variable (Eg: dps). After which you will have to create a function which adds the next dataPoint and call chart.render(). Then you can call the function at regular intervals which adds the dataPoint and renders the chart.
    Please take a look at the code snippet below,

    var xVal = dps.length + 1;
    var yVal = 100;	
    var updateInterval = 1000;
     
    var updateChart = function () {
    	
    	
    		yVal = yVal +  Math.round(5 + Math.random() *(-5-5));
    		dps.push({x: xVal,y: yVal,});
    		
    		xVal++;
    	
    	chart.render();		
     
    };
    setInterval(function(){updateChart()}, updateInterval); 

    Please take a look at this documentation page link for a step-by-step tutorial to create a dynamic chart that updates dataPoints at regular intervals.

    dynamic line chart

    in reply to: problem with chart #6331

    Welcome

    in reply to: border around charts #6330

    Daniel,

    The issue is that the height is not set for the chart container and hence border is getting drawn only at the top. Here is a JSFiddle with the issue fixed.

    Setting border around charts

    As of now whenever height of the container is not set, we use default size on chart but don’t set height of the container itself. In future versions we’ll consider this.


    Sunil Urs
    Team CanvasJS

    in reply to: zoom trouble #6329

    @Slejnej,

    I’ll have a look into the issue and get back.


    Sunil Urs

    in reply to: Problem with asp.net #6328

    May I know your browser & its version please?

    in reply to: data and tip mismatched #6327

    @Slejnej: As Daniel mentioned you probably don’t have a latest version on the website. Can you please download the latest version and let me know if its working as expected. If not, can you give me the link to that site?..

    in reply to: problem with chart #6316

    dataPoints should be an array. What you are using instead is an object with indexes 0,1,2,etc. Below is how the array should look like.

    "dataPoints": [
            {
                "x": 1399766400000,
                    "y": 97.804
            },
            {
                "x": 1399852800000,
                    "y": 98.387
            }]
    in reply to: automatic value for Y axis #6307

    When checking for undefined, its better to go with below code which works across browsers and devices.

    typeof(max) === 'undefined'

    in reply to: give an object to the constructor #6301

    Daniel,

    Makes sense. I’ll consider this for next version.


    Sunil Urs

    in reply to: datetime format #6300

    As of now only timestamps or date objects can be assigned to x. Other formats are not supported yet.

    date time chart


    Sunil Urs

    in reply to: Export chart to PNG/PDF #6287

    Using toDataURL

Viewing 15 posts - 211 through 225 (of 548 total)