Forum Replies Created by Shashi Ranjan

Viewing 15 posts - 166 through 180 (of 507 total)
  • in reply to: call methods #28974

    @mat,

    Please refer to this tutorial for a complete list of methods and properties on canvas.


    Shashi Ranjan
    Team CanvasJS

    in reply to: issue with stacked columns and dates in YYYY-m-D #28963

    @andy,

    Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the PHP file that is being used to generate data(sample data/database) so that we can look into the code, edit and run it locally to understand the scenario better and help you resolve?


    Shashi Ranjan
    Team CanvasJS

    in reply to: PHP Charts & Graphs with Multiple Axes #28943

    @armin,

    Please take a look at this documentation page for step-to-step tutorial on rendering multiple charts in a page.


    Shashi Ranjan
    Team CanvasJS

    in reply to: Format time for viewportMinimum & viewportMaximum #28926

    @prashanth2303,

    X axis’s viewportMinimum and viewportMaximum can either be a numeric or a Date Object. The value being passed by you seems to be invalid as it’s neither numeric nor date-time object. Passing viewportMinimum and viewportMaximum with a valid date object according to your requirements should work fine in this case. You can refer to the code snippet below for an example on the same.

    viewportMinimum: new Date(2019, 01, 01, 09, 00, 00),
    viewportMaximum: new Date(2019, 01, 01, 12, 30, 00)

    If you are still facing the issue, kindly create a 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 out?


    Shashi Ranjan
    Team CanvasJS

    in reply to: issue with stacked columns and dates in YYYY-m-D #28925

    @andy,

    It seems like JSON data shared by you is partial. Can you please create a JSFiddle reproducing the issue along with your complete JSON data being hosted on some JSON storage service like npoint.io and share it with us so that we can look into the code to understand the scenario better and help you out.


    Shashi Ranjan
    Team CanvasJS

    in reply to: Get data with Ajax on a pie chart #28924

    @batmine3,

    It seems to be working fine. Please take a look at this gallery page for an example on creating a chart using JSON data in PHP.

    If you are still facing the issue, kindly create a sample project reproducing the issue you are facing along with your sample data 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.


    Shashi Ranjan
    Team CanvasJS

    in reply to: issue with stacked columns and dates in YYYY-m-D #28893

    @andy,

    Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with the PHP file that is being used to generate data(sample data/database) so that we can look into the code, run it locally to understand the scenario better and help you resolve?


    Shashi Ranjan
    Team CanvasJS

    in reply to: ICONS #28875

    @keshav054,

    As of now, markers can have only five possible values – “circle”, “square”, “triangle”, “cross” & “none”. However, you can position images in place of markers using this workaround. Please take a look at this documentation page for more information on positioning images on top of the chart.


    Shashi Ranjan
    Team CanvasJS

    in reply to: Graph a CSV file #28866

    @vijayar1,

    Kindly refer this JSFiddle on creating chart from an external text file.

    The format of the text file( e.g. dataPoints.txt ) should be:

    10 71 
    20 55
    30 50
    40 65
    50 95
    60 45
    72 20


    Shashi Ranjan
    Team CanvasJS

    in reply to: Chart Data Binding from database example #28851

    @mtopal,

    Glad that you figured it out. :)


    Shashi Ranjan
    Team CanvasJS

    in reply to: issue with stacked columns and dates in YYYY-m-D #28850

    @andy,

    Stacked Charts are plotted when multiple column/area charts with same x values are plotted on same scale. In the JSFiddle shared above, you’re using label to display the date and time values. Passing it as Date Object to x-values and use the valueFormatString for formatting the date and time values should work fine in your case. Please refer this documentation page for more information on valueFormatString. Also, please take a look at this updated JSFiddle.


    Shashi Ranjan
    Team CanvasJS

    in reply to: Can I use downloaded custom fonts? #28832

    @jejung,

    You can render charts with custom fonts from any source. Please take a look at this JSFiddle, where Google Font is used for the title. Similarly, you can use fonts from other sources too. Please refer this article for information on adding custom fonts to your website.


    Shashi Ranjan
    Team CanvasJS

    in reply to: PHP Charts & Graphs with Multiple Axes #28802

    @armin,

    Splitting string using the explode method before passing it to dataPoints should work fine in your case. Please take a look at this updated Sample Project.


    Shashi Ranjan
    Team CanvasJS

    in reply to: PHP Charts & Graphs with Multiple Axes #28782

    @armin,

    x-value can either be a numeric or a date-time object. Since the value being passed by you seems to be invalid (0 0.05 – there is a space between 0 & 0.05). Passing x-values in a valid number format based on your requirements should work fine in this case.


    Shashi Ranjan
    Team CanvasJS

    in reply to: PHP Charts & Graphs with Multiple Axes #28756

    @armin,

    Please take a look at this gallery page for an example on creating chart with multiple axes in PHP.

    If you are still facing the issue in creating a chart with multiple axes, 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.


    Shashi Ranjan
    Team CanvasJS

Viewing 15 posts - 166 through 180 (of 507 total)