Forum Replies Created by Vishwas R

Viewing 15 posts - 916 through 930 (of 1,636 total)
  • in reply to: Reset not working when chart is rendered already zoomed-in #22719

    @leandrocosta,

    Yes, its better to call e.chart.render() only on triggering reset instead of calling it everytime the range is changed :)


    Vishwas R
    Team CanvasJS

    in reply to: Reset not working when chart is rendered already zoomed-in #22704

    @leandrocosta,

    viewportMinimum and viewportMaximum are used to programmatically zoom to a region. In this scenario, if you try to reset the range by clicking reset button it will fallback to the range that you have set (viewportMinimum and viewportMaximum). Removing viewportMinimum and viewportMaximum should work fine in this case. Or if you are trying to zoom to a certain region on initial render and like to reset on clicking reset button, you can use rangeChanged event as shown in this updated JSFiddle.


    Vishwas R
    Team CanvasJS

    in reply to: sprint mvc pie chart #22655

    @dilrukshirajapakshe,

    I observe that the X-Value being passed in the view is a string, whereas X-Value can either be number or date-time. However you can use label to show names, which accepts string. Can you try changing map.put("x", xVal); to map.put("label", xVal); in Report.jsp (line no: 29) and check if it works?

    If this doesn’t solve your issue, I request you to export your project as war/archive along with database so that we can run the project locally, understand your issue better and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: About datetime format in tooltip #22654

    @prasad,

    xValueFormatString defines the format of x-value to be displayed in toolTip and indexLabel. Setting xValueFormatString to ‘YYYY-DD-MM hh:mm:ss’ should show date in the format you are looking for. Checkout our documentation for more customization options available.


    Vishwas R
    Team CanvasJS

    in reply to: Show current time in X axis in stackedcolumn #22649

    @adjmpw,

    X-Value can either be numeric or a dateTime value. But in the pen that you have shared x-value seems to be string as curTime() returns a string. You can use labels instead of x-value in this case. Please take a look at this updated pen.


    Vishwas R
    Team CanvasJS

    @wonky,

    You can store JSON data the way you want. But before passing dataPoints to the chart, you need to parse it to the format accepted by CanvasJS. Please take a look at this JSFiddle where Open, High, Low, Close data are stored separately.


    Vishwas R
    Team CanvasJS

    in reply to: Ignore part of JSON #22647

    @wonky,

    CanvasJS just renders the chart with the data that you have passed in chart-option. You can use AJAX getJSON to get the JSON data and with the help of key, you can get its corresponding value. Please refer this tutorial for the same.

    Example: If you are storing json {"Success":true,"Error":null,"Data":[{}]} as test.json, you can access Data using jsonData.Data where jsonData is the response that you get from AJAX request.

    
    $.getJSON("test.js", function(jsonData) {
        var data = jsonData.Data;
     });
    


    Vishwas R
    Team CanvasJS

    in reply to: getJSON issue #22646

    @wonky,

    Thanks for sharing the article, which would help others who are facing this issue. You can use the reverse proxy / spoofing mentioned in the article if it’s secure to use.


    Vishwas R
    Team CanvasJS

    in reply to: images not working while integrating 2 charts on same page #22645

    @abhishek3dmaster,

    You are adding images on top of 1st chart-container even while adding it to 2nd chart because of which you can’t see images positioned on top of 2nd chart. Changing .appendTo($("#chartContainer>.canvasjs-chart-container")) to .appendTo($("#chartContainer2>.canvasjs-chart-container")) within ‘addimages2’ method should work fine in your case.


    Vishwas R
    Team CanvasJS

    in reply to: canvas chart #22622

    @jay,

    You can download Fully-Featured Version of CanvasJS from Download Page for evaluation purposes for up to 30 days. To use charts without ‘Trial Version’ and ‘CanvasJS’ Credit Link you will need to have a Commercial Version of CanvasJS. Please checkout our Pricing Page for Non-Commercial & Discounted Licenses. Please contact sales@canvasjs.com for sales related queries.


    Vishwas R
    Team CanvasJS

    in reply to: Creating a chart from data with SQL DB [PHP] #22620

    @d3bsky,

    You can set valueFormatString to “HH:mm” to display hours in 24hours format along with minutes. You can customize the format of labels being displayed in axisX using valueFormatString, please refer documentation for more available options.
    Formatting x-axis values


    Vishwas R
    Team CanvasJS

    in reply to: Automatically zoom to end of update #22619

    @adjmpw,

    Glad that you made it work using viewportMinimum and viewportMaximum :)


    Vishwas R
    Team CanvasJS

    in reply to: Show current time in X axis in stackedcolumn #22618

    @adjmpw,

    It seems to be working with date-time axis aswell.

    Can you kindly create JSFiddle or in Codepen – reproducing the issue you are facing, so that we can look into your code, understand the scenario better and help you out?


    Vishwas R
    Team CanvasJS

    in reply to: how i can create ecg grapgh like this #22551

    @parsureshkumar,

    You can customize it to be 5*5 or the desired dimension of yours by updating the interval. In the JSFiddle, 10 stripLines are added between each interval. You can customize it to add more – please try updating the same in addStripLines method.

    Please refer Creating Dynamic Charts for tutorial on rendering dynamic charts.
    Dynamic / Live Line Chart


    Vishwas R
    Team CanvasJS

    in reply to: How to hide the secondary graph but not the axis label #22550

    Satyabrata,

    I request you to share the JSFiddle to try the steps you have mentioned, the reason being – in the JSFiddle that I had shared earlier, once you click Toggle Button, it hides all the dataSeries after which you can’t zoom into any region as there are no dataPoints available to zoom.

    click the toggle button and hide the axisY2 graph but show axisY2 labels.

    Do you mean hide dataSeries. Also can you please brief what do you mean by ‘axisY2 graph’ as the entire chart itself is a graph – do you mean the dataSeries that is attached to axisY2.
    Column Chart with Secondary Y-Axis to the Right


    Vishwas R
    Team CanvasJS

Viewing 15 posts - 916 through 930 (of 1,636 total)