Forum Replies Created by Vishwas R

Viewing 15 posts - 1,546 through 1,560 (of 1,601 total)
  • in reply to: Graphs not displaying correctly on Chrome #10500

    Callam,

    We observed that the JSFiddle you have created seems to be working fine across all browsers.
    multiseries line chart

    If the issue persists, kindly share the OS details along with chrome version you are using so that we can test it, understand the scenario better and help you out.


    Vishwas R
    Team CanvasJS

    in reply to: A variable for dataPoints #10498

    @justxtasy,

    You can build datapoints JSON as shown below.

    $.each(data, function (i, item) {
        dps.push({label: item.ProfileName, y: item.TotalCustomer});
    });

    Please take a look at this JSFiddle for an example.
    Chart with Data from JSON


    Vishwas R
    Team CanvasJS

    in reply to: Graphs not displaying correctly on Chrome #10497

    Callam,

    It would help us if you can provide us the working fiddle of the issue along with proper JSON-data.

    Here is an example to give you an idea on using external JSON in JSFiddle.
    Column Chart from JSON Data


    Vishwas R
    Team CanvasJS

    in reply to: how to create Multiple Charts on page #10478

    You can render chart on clicking a button using onclick mouse-event. Please take a look at this JSFiddle for an example on rendering chart on button click with data from multiple CSV.
    rendering multiple charts in a page based on button click


    Vishwas R
    Team CanvasJS

    in reply to: A bigger Export Tab #10477

    Mitul,

    JQuery is loaded in the example provided. In JSFiddle, under JavaScript section, you can include libraries like JQuery, AngularJS directly.

    Check this Screenshot.

    in reply to: A bigger Export Tab #10427

    Mitul,

    We checked both the examples in desktop as well as in android and found its working fine. It would help us to resolve the issue if you could create a fiddle of the issue you are facing.

    in reply to: A bigger Export Tab #10422

    [update]

    We have just released v1.9.6 Beta with Methods & Properties, which allows you to programmatically export chart as image, print chart, access internally calculated values, etc. Please refer to the release blog for more information.

    Mitul,

    You can hide ‘save as PNG’ using CSS. Here is an example.

    You can also have a button/link outside chart to export it as JPEG, using dataURL. Here is an example.

    in reply to: Collection data with Ajax #10390

    Michael,

    You can parse the JSON data and pass dataPoints to respective dataSeries in chart options as shown below

    $.ajax({
      type: 'GET',
      url: 'https://api.npoint.io/191c62a905159a49256e',
      dataType: 'json',
      success: function(field) {
        for (var i = 0; i < field.length; i++) {
          dataPointsA.push({
            x: field[i].time,
            y: field[i].xxx
          });
          dataPointsB.push({
            x: field[i].time,
            y: field[i].yyy
          });
        }
    
        var chart = new CanvasJS.Chart("chartContainer", {
          title: {
            text: "JSON from External File"
          },
          exportEnabled: true,
          data: [{
            type: "line",
            name: "line1",
            xValueType: "dateTime",
            dataPoints: dataPointsA
          }, {
            type: "line",
            name: "line2",
            xValueType: "dateTime",
            dataPoints: dataPointsB
          }, ]
        });
    
        chart.render();
    
      }
    });

    Here is an example for loading JSON data from external source using AJAX.

    Rendering Chart from External JSON File using AJAX

    You can also refer loading data from external JSON in this example.

    Rendering Chart from External JSON File

    —-
    Vishwas R
    Team CanvasJS

    in reply to: date time formatting issues #10389

    @mmfc,

    You can customize & style the tooltip to fit in your requirements using properties like borderColor, fontColor and backgroundColor.

    toolTip: {
    	borderColor: "#000000",
    	backgroundColor: "#F4D5A6",
    	fontColor: "#FAC003"
    }


    Vishwas R
    Team CanvasJS

    in reply to: Blurry title and x-axis #10388

    Fernando,

    Thanks for the information. We look into the issue and get back to you at the earliest.

    [Update]
    Print resolution should be handled in ‘Printer Settings’, however you can increase the resolution of image when exported chart as image as shown in this JSFiddle.

    Jhaagsma,

    Sorry for the inconvenience. We are looking into the issue and will get back to you.

    in reply to: Inconsistent X Axis Label Calculation #10386

    David,

    As of now controlling the tick and label start point is not available. Interval start point will be calculated automatically and varies for different intervalType. We consider it for future release.

    in reply to: Setting thresholds for line color #10385

    Nefron,

    As of now this feature is not available. But you can change color of line once it switches from negative to positive and vice-versa. Here is an example.

    in reply to: bug: stackedColumn in chrome no longer working #10337

    Danny,

    Thanks for the information. Probably this is the reason why we have not been able to reproduce the issue at our end yet. We will look into it further.

    in reply to: date time formatting issues #10331

    @mmfc,

    You can define the format of x-value shown in tooltip & indexlabels by setting xValueFormatString. However if you like to completely format / custom-content in the tooltip content, you can use toolTipContent.
    customizing tooltip content in a chart


    Vishwas R
    Team CanvasJS

Viewing 15 posts - 1,546 through 1,560 (of 1,601 total)