Forum Replies Created by Vishwas R

Viewing 15 posts - 391 through 405 (of 1,601 total)
  • in reply to: How to change the legend symbol? #28872

    @siddharth-tiwari,

    You can use legendMarkerType to change the marker-type of legend and to perform mouseover event on legend, you can use itemmouseover.


    Vishwas R
    Team CanvasJS

    in reply to: YYYYDDMM XAxis using JSON #28829

    @durxxx,

    Passing x-value in one of the valid JavaScript Date-Formats should work fine in this case. Please take a look at this JSFiddle for an example on parsing date to ISO standard [new Date(“2020-03-05”)].


    Vishwas R
    Team CanvasJS

    in reply to: any new updates coming? #28808

    @joran,

    We are working on some importants features at this point of time, which would be released in couple of weeks. We will keep you posted once we release.

    Please subscribe to our blog for more updates.


    Vishwas R
    Team CanvasJS

    in reply to: CanvasJS not displaying #28801

    @hexynator,

    It seems to be working fine, please refer screenshot below.

    CanvasJS Column Chart

    Kindly check if canvasjs.min.js script is included properly. If you are still facing issue, kindly share sample project reproducing the issue over Google-Drive or Onedrive and brief us the steps to reproduce the issue so that we can try to reproduce at our end to understand the scenario better and help you resolve.


    Vishwas R
    Team CanvasJS

    in reply to: Is it possible to show tooltip with date and time? #28800

    @robinson,

    valueFormatString is used to format the value being shown in axis labels. To format the x-value being shown in toolTip and indexlabel, you need to set xValueFormatString.


    Vishwas R
    Team CanvasJS

    in reply to: server side chart caching #28762

    Jim,

    In order to render chart on the server side you would require a headless browser like PhantomJS. Here is an article which might help.

    Please take a look at this sample PhantomJS project, that captures the chart image from web page and saves it to a particular location. Please refer to instructions.txt file for clear understanding.


    Vishwas R
    Team CanvasJS

    in reply to: indexlabel not working on area chart #28715

    @lageiger,

    Indexlabels seems to be working fine across all chart-types including line, spline, area, column, etc. Please check for any typos and check browser-console for any error.

    If the issue still persists, kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you resolve.


    Vishwas R
    Team CanvasJS

    in reply to: Need help #28664

    @rishwanth,

    There seems to be typo in your code. You are using calling method rendor (which is not present) instead of render. Changing it to chart.render() should work fine in your case.

    If you are still facing issue, kindly create JSFiddle reproducing the issue and share it with us so that we can look into the code, understand the scenario better and help you resolve.


    Vishwas R
    Team CanvasJS

    in reply to: Zero values in logarithmic mode draw off chart top? #28662

    Michael,

    A logarithmic axis can only plot positive values. There simply is no way to put negative values or zero on a logarithmic axis.

    Fundamental: If 10L = Z, then L is the logarithm (base 10) of Z. If L is a negative value, then Z is a positive fraction less than 1.0. If L is zero, then Z equals 1.0. If L is greater than 0, then Z is greater than 1.0. Note that there no value of L will result in a value of Z that is zero or negative. Logarithms are simply not defined for zero or negative numbers.

    Considering this as duplicate of Zero values in logarithmic mode draw off chart top?. Hence closing the same.


    Vishwas R
    Team CanvasJS

    in reply to: Zero values in logarithmic mode draw off chart top? #28661

    Michael,

    A logarithmic axis can only plot positive values. There simply is no way to put negative values or zero on a logarithmic axis.

    Fundamental: If 10L = Z, then L is the logarithm (base 10) of Z. If L is a negative value, then Z is a positive fraction less than 1.0. If L is zero, then Z equals 1.0. If L is greater than 0, then Z is greater than 1.0. Note that there no value of L will result in a value of Z that is zero or negative. Logarithms are simply not defined for zero or negative numbers.


    Vishwas R
    Team CanvasJS

    in reply to: Can we create some volume profile chart ? #28614

    @adjmpw,

    Sorry, as we are busy implementing some other important features at this point of time, we don’t have combination of bar with candlestick or line in our current roadmap. Hence there is no definite timeline for the same.


    Vishwas R
    Team CanvasJS

    in reply to: Download Multiple Chart as PDF #28604

    @legalmonitor,

    Exporting chart as image is supported by CanvasJS. But, exporting multiple charts in a page is not supported as of now. You can export multiple charts in a page or the page itself with the help of 3rd party libraries html2canvas and jsPDF. Please refer respective library documentation for browser supports and polyfills.


    Vishwas R
    Team CanvasJS

    in reply to: How to Change date format for PHP #28587

    @salman_emenacsoft,

    CanvasJS is a JavaScript based charting library which accept date-time in JavaScript date formats only. In your case, you will have to convert PHP date to JavaScript date to make it work fine. To achieve that, first you need to convert PHP date to PHP timestamp using strtotime. As PHP timestamp is in seconds and JavaScript timestamp is in milliseconds, you will have to multiply PHP timestamp by 1000. After converting it to JavaScript timestamp, you can pass it to chart data along with setting xValueType to ‘dateTime’. Please find the code-snippet below for converting PHP date to JavaScript timestamp.

    $phpTimestamp = strtotime("2020-03-05");
    $javaScriptTimestamp = $phpTimestamp * 1000;

    Chart with timestamp data in x-axis

    __
    Vishwas R
    Team CanvasJS

    in reply to: react charts render outside container #28586

    @mike,

    By default Chart takes the size of its container, if set. IF the size of the container is not set, chart takes default height and width because of which it overflows the parent’s height. In case of React wrapper, you can set the height and width of the chart-container by passing it as containerProps. Please take a look at this demo for an example on setting width, height and border for chart-container.

    If you are still facing the issue, kindly create a sample project reproducing the issue and share it with us over Google-Drive or Onedrive. Alternately you can create sample project in CodeSandbox and share it with us so that we can understand the scenario better and help you resolve.


    Vishwas R
    Team CanvasJS

    @cletussolafripsgmail-com,

    It seems to be working fine with a dependency on jQuery, html2canvas & jspdf libraries
    Exporting Multiple Charts in a Page as PDF
    Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive so that we can look into the code, understand the scenario better and help you out?


    Vishwas R
    Team CanvasJS

Viewing 15 posts - 391 through 405 (of 1,601 total)