Forum Replies Created by Thangaraj Raman

Viewing 15 posts - 16 through 30 (of 226 total)
  • in reply to: problem in combination chart #45329

    @mahsa77,

    In the example you shared, the chart displays a line dataseries and a column dataseries with reduced width. This is happening because of the large difference in the number of datapoints between the line and column dataseries. The chart automatically reduces the width of the columns to accommodate datapoints from both series in the plot area.

    You can use the dataPointWidth property to set a fixed width for the column chart. Please check this updated JSFiddle for a working example.

    Combination chart with fixed column width


    Thangaraj Raman
    Team CanvasJS

    in reply to: Onclick Event #45301

    @tejasjadhav,

    To fetch custom data by clicking on a datapoint, you can use the click event handler and access all chart properties(custom and predefined) using the event object.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Header text more than 1 line #45266

    @iandelima,

    Adding a line break in between the title text is not possible as of now. You can wrap the title to multiple lines by setting maxWidth to a certain value after which the text should wrap. The wrap property is true by default.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Disappearing graphs after a while #45219

    @mario,

    CanvasJS Charts seems to be working fine across all the browsers except Chromium-based browsers in certain use cases. This is due to a HTML canvas-related bug in one of Chrome’s updates. Please check this link for more information. Please try updating to the latest version of Chrome where this issue might be fixed.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Render graph in HTML Canvas #45165

    @ben-haestqed-lu,

    The chart container has to be a div, not a canvas, as shown in the code snippet below:

    <div id="myChart" style="border:1px solid #000000; margin-right: auto; margin-left: auto; display: block;"></div>

    Please take a look at this docs page for a step-by-step tutorial on creating a chart.


    Thangaraj Raman
    Team CanvasJS

    in reply to: how to calculate axisY value #45156

    @p42510,

    The interval at which axis labels are displayed is automatically calculated based on multiple factors like chart height / width, axis minimum & maximum, etc.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Converting between pixels and data values #45091

    @phrogz,

    You can use the convertValueToPixel method to get the pixel coordinate for a given value along the axis. Similarly, you can use the convertPixelToValue method to get the value along the axis for a particular pixel coordinate.


    Thangaraj Raman
    Team CanvasJS

    @ranc,

    You can set the datapoint color based on the datapoint value, whether it’s rising or falling as shown in the code snippet below:

    function changeBorderColor(chart){
      var dataSeries;
      for( var i = 0; i < chart.options.data.length; i++){
        dataSeries = chart.options.data[i];
        for(var j = 0; j < dataSeries.dataPoints.length; j++){
          dataSeries.dataPoints[j].color = (dataSeries.dataPoints[j].y[0] <= dataSeries.dataPoints[j].y[3]) ? (dataSeries.risingColor ? dataSeries.risingColor : dataSeries.color) : (dataSeries.fallingColor ? dataSeries.fallingColor : dataSeries.color);
        }
      }
    }

    Please check this JSFiddle for a working example.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Inline images blocked by Content Security Policy #44833

    @ashley-mercer,

    Thanks for reporting the use case. We will revisit this in future releases.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Gradient Fill for RangeAreaChart #44824

    @kinokatsu,

    Gradient is there in our roadmap but no definite timeline yet.


    Thangaraj Raman
    Team CanvasJS

    in reply to: How to make it work? #44719

    @vendland,

    The samples from our website have been built using Eclipse and we suggest you to run it in Tomcat server(<=v9) within Eclipse. However, if you want to run it in IntelliJ IDEA, you will have to configure Tomcat server(<=v9) within IntelliJ IDEA. Please refer to this article for a tutorial on the same.


    Thangaraj Raman
    Team CanvasJS

    in reply to: How to make it work? #44714

    @vendland,

    The sample that you have shared is not working irrespective of the chart code. Please refer to the screenshot below. Spring MVC downloadable sample seems to be working fine. You can download the same from here.

    Spring Maven Intellij Sample


    Thangaraj Raman
    Team CanvasJS

    in reply to: Empty Charts #44612

    @doubletop,

    Date-time values can be displayed on a chart by week, month, or year based on the data being passed to it. Please take a look at this gallery page for an example of creating a chart using month-wise data.


    Thangaraj Raman
    Team CanvasJS

    in reply to: Using CanvasJs from Typescript #44553

    @friksa,

    You can download the commercial version package from the My Account page and the steps to integrate have been addressed in the instruction.html file which is present inside each package under the @canvasjs folder.

    For example, if you are integrating CanvasJS charts with Angular, download the commercial version and navigate to @canvasjs > angular-charts > instruction.html


    Thangaraj Raman
    Team CanvasJS

    in reply to: Integrate commercial CanvasJs via NPM #44549

    Xavier,

    Thanks for your valuable feedback. As of now, the commercial version of the package is available to download from My Account page only.


    Thangaraj Raman
    Team CanvasJS

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