Forum Replies Created by Suyash Singh

Viewing 15 posts - 16 through 30 (of 284 total)
  • in reply to: Multi data on x axis #19282

    Aarya,

    Can you please provide the link to jsfiddle with sample data?

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Multi data on x axis #19277

    Aarya,

    The dataPoints in multi-series charts need to be aligned, i.e. there should be the same number of dataPoints in all the data-series. In cases where y values are missing in some of the data-series adding a dataPoint will null y value should work fine. I have updated your jsfiddle, please take a look.

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Chart always rendering, unable to change data. #19234

    @wtf,

    Despite the fact that I am not calling the render function

    The chart is getting rendered as change method is called which in turn calls chart.render().

    function change() {   
        newTitle = "is going on";
        chart.render(); // chart.render() gets called inside change
    }
    change(); // Call to the change method

    Please take a look at this MDN Page on Javascript Functions.

    cannot be changed by changing the data and re-rendering.

    The title is not being updated as chart options are not updated within change method instead, you are updating newTitle. You can use set method to update the chart title. Please add the following line after chart.render() method in change();
    chart.title.set("text", newTitle);

    You can take a look at this Documentation Link on set() for more info.

    Also, we noticed that you haven’t set the dataPoints properly. dataPoints should be an array which is number in your case.
    dataPoints: 0 // incorrect, should be an []

    The chart should work fine after making all these changes.
    ___
    Suyash Singh
    Team CanvasJS

    @nisha,

    For a dataset, you can have only one Simple Moving Average. Calculating SMA over again will give you the same set of SMA and plotting it will lead to overlapping of two SMA’s. Also, you can refer this wiki on SMA for more info.

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Color value on click #18987

    Chris,
    Please have a look at this jsfiddle.
    ___
    Suyash Singh
    Team CanvasJS

    @nisha,

    The functions calculateMovingAverage() and calculateMovingAverageScrap() will generate the same set of dataPoints as essentially they are same. Can you please brief us further about your requirements along with a jsfiddle with your sample data, or pictorial representation, so that we can understand your requirements better and help you out.
    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Create a chart for use of number of RDS users & groups #18983

    @stevenbaert,

    Can you please share a sample project along with sample data reproducing the issue that you are facing and share it over one drive(or any other similar service) so that we can understand your code better and help you out?

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Height is not resizing #18961

    Gigi,

    Please take a look at this jsfiddle.

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Bar chart showing nothing #18959

    @ajazurrahman,

    We observe that you are passing an array as y-value to a column chart. Since Column Chart accepts a single numeric y-value, you can either use one of the values from your highlow array or change the chart type to Range Column Chart as in this jsfiddle.

    If this doesn’t suit your requirements can you please create a sample jsfiddle or
    give us a pictorial representation so that we can understand your requirements better and help you out?

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Series lines not looks sharp #18943

    @aksangwan,

    The visual appearance of charts to a large extent is dependent on the color combination, the thickness of the lines and other related customizations. Can you please try changing color and lineThickness so that it looks better.

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: How display chart in webview on app android and ios #18942

    @andythreesaputra,

    Can you please share a sample project along with sample data reproducing the issue you are facing so that we can look into it and help you out?

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Color value on click #18941

    Chris,

    Please have a look at this jsfiddle.
    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Series lines not looks sharp #18921

    @aksangwan,

    Can you please brief us more about your requirements, so that we can understand it better and help you out. Also, it would be great if you could create a jsfiddle reproducing the issue that you are facing so that we can look into it and help you out.
    ___
    Suyash Singh
    Team CanvasJS

    in reply to: I want to integrate the x-axis. #18920

    @yubak,

    Can you please share your code/image to info@canvasjs.com so that we can look into it and help you out?
    ___
    Suyash Singh
    Team CanvasJS

    @nisha,

    calculateMovingAverage() should be called before calling chart.render(). Please replace chart3.render(); by

    calculateMovingAverage(chart3);
    chart3.render();

    ___
    Suyash Singh
    Team CanvasJS

Viewing 15 posts - 16 through 30 (of 284 total)