Forum Replies Created by Vishwas R

Viewing 15 posts - 1,141 through 1,155 (of 1,615 total)
  • @yansonalvin97,

    You can change chart-type whenever there is change in dropdown. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    in reply to: display legent without data #20500

    Larry,

    1. is it different from just add empty objects as default to each dataPoint? also no need to delete it

    Both are same. However empty object in a dataSeries can affect axis-range.

    2. as you can see in your solution, Xaxis is changed due to this solution. why its happens?

    That’s because of empty object. To avoid this you can add a dataPoint with y-value set to null. Please take a look at this updated jsfiddle.


    Vishwas R
    Team CanvasJS

    @natasha11,

    Please take a look at this sample project for creating dynamic charts using data from MySQL database in PHP. Also, please refer to this documentation page for creating Dynamically Updating Charts from JSON API & AJAX.

    If this doesn’t suit your requirements, kindly share a sample project with sample data over google-drive or onedrive so that we can understand it better and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: display legent without data #20496

    Larry,

    You can add an empty object to dataPoints to show legend and remove the empty object when you update dataPoints. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    in reply to: Radar Chart #20486

    @yansonalvin97,

    Thanks for your appreciation. Feedback from users like you makes our day happier :)

    Radar chart is there in our roadmap, but no definite timeline yet. Please subscribe to our blog for update.


    Vishwas R
    Team CanvasJS

    in reply to: Multiple Chart with Data from csv-file #20485

    Marco,

    It seems to be working fine across all browsers. Please check the screenshot below.
    CanvasJS Candlestick chart from CSV

    Can you kindly share OS & Browser you are using and its version so that we can look into it and help you out?


    Vishwas R
    Team CanvasJS

    in reply to: Local host for canvas.min.js? #20475

    @jwk,

    Please check the path of the file you are linking and it should work fine if its linked properly. It would be helpful for us to understand your scenario better if you could share sample project (over google-drive or onedrive) which you are running in local web server so that we can look into it and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: Multiple Chart with Data from csv-file #20471

    Marco,

    AS you are using $.get(), which is jQuery method, adding jquery to your code should work fine. Please take a look at this tutorial on getting started with jQuery.


    Vishwas R
    Team CanvasJS

    in reply to: Canvasjs Used with an hta extension #20468

    @ipapop,

    Thanks for bringing it to our notice. You were facing the issue due to trailing comma in chart-options data: data, // random generator below. Removing trailing comma should work fine in your case. We have updated the code in docs, please try with latest code or try removing trailing comma data: data // random generator below


    Vishwas R
    Team CanvasJS

    in reply to: User-defined chart export size #20462

    @InvisibleSandwich,

    You can scale-up or scale-down the chart before exporting using exportChart method and reset it back soon after exporting. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    in reply to: How can i set more than 1 color set for each graph? #20455

    @vincent,

    You can have one colorSet within a chart, as of now. However if you are trying to have different colorSets for each dataSeries, you can try setting color in dataPoint level. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    in reply to: Date displaying 1 month #20442

    @faulduff,

    In JavaScript, date object can be created in 4 ways. new Date(), new Date(year, month, day, hours, minutes, seconds, milliseconds), new Date(milliseconds), new Date(date string).

    In your case i.e new Date(year, month, day), month counts from 0 to 11 i.e. 0 corresponds to January and 11 corresponds to December. Changing the month according to JavaScript date-object should work fine in your case.

    For different JavaScript date formats please refer this article.

    Please take a look at this JSFiddle for a working example with sample code.

    CanvasJS multiseries line chart with date and time values


    Vishwas R
    Team CanvasJS

    in reply to: Text box on Charts #20434

    Ryan,

    You can position custom DOM wherever you want on the chart with the help of convertValueToPixel and convertPixelToValue methods. Please take a look at this jsfiddle where many custom texts are positioned as indexLabels.


    Vishwas R
    Team CanvasJS

    in reply to: Updating a chart from local CSV file #20431

    @jwk,

    Glad that you fixed the issue :)


    Vishwas R
    Team CanvasJS

    in reply to: Resize issue using JQuery Tabs #20430

    @tcodeuser,

    ui.newTab.index() gives you the index of the current tab, which is 2 in this case. However you are trying to access charts[index] and charts2[index], i.e. charts[2] and charts2[2] which doesn’t exists as the length of both charts and charts2 is 1. Rendering chart1 and chart2 (or charts[0] and charts2[0]) on ‘tabsactivate’ should work fine in this case. Please take a look at this updated jsfiddle.

    Still, if you are facing any issue please create a jsfiddle with sample data and share it with us so that we can understand your code better and help you out.


    Vishwas R
    Team CanvasJS

Viewing 15 posts - 1,141 through 1,155 (of 1,615 total)