Forum Replies Created by Anjali

Viewing 15 posts - 151 through 165 (of 171 total)
  • in reply to: define color in the options #6497

    Hi,

    Yes, you can only read colors when you set them explicitly. Default colors are not exposed yet.

    But we do have a workaround where you can assign a custom colorSet and determine dataPoint’s color from it – dataPoints are assigned color in a sequential order. Checkout this example.

    in reply to: define color in the options #6492

    Hi,
    You can read the used colors which are explicitly given to data. By default color retrieved from the colorSet cant be read as of now.

    in reply to: Display Chart using JSON data in ASP MVC #6491

    Hi,
    Can you please post the JSON Response. So that I can help you more efficiently.

    in reply to: Column & Line on the same chart #6490

    Hi,
    Yes, It is possible to put a column and line chart on the same graph. You can go through the combination charts section in our documentation which makes more clear the combinations of charts per dataSeries.
    I have created a simple example for you which will be helpful.

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

    Hi,

    Yes, you can plot the chart as mentioned in the link. Because charts just get drawn inside any container you provide, it’s more about designing the container itself. Just design/place the container according to your requirement and pass its id to CanvasJS and chart should get plotted inside the same.

    Here is simple example that I’ve created. You can style it according to your requirements.

    in reply to: export several charts to pdf #6474

    Hi,

    In case you are going to use toDataUrl, then I just want to let you know that you need to convert first canvas element present inside the container.

    Regards,
    Anjali

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

    Hi

    Can you please give us some link / screenshot that depicts the kinda widget that you want to create?

    in reply to: Chart navigation and vertical line marker #6472

    Hi,

    “Navigation” or “Vertical marker(crosshair)” will be released in v1.6 of canvasJs with in coming 4-6 weeks.

    “when you put the mouse over data a vertical marker is showed displaying x axis value instead specific point value” for displaying the specific point value, Tooltip property can help you. Here is the example how to use tooltip

    Please let me know if it works for you.

    in reply to: automatic Y max/min #6471

    Hi,

    You can set axisY’s includeZero property to false in these cases in order to keep axis minimum closer to given y values. Here is the example on how to use includeZero

    Please let me know if this works for you.

    in reply to: Display Chart using JSON data in ASP MVC #6459

    @lonwabogiqwa,

    You basically need to loop through the JSON data and parse it to the format accepted by CanvasJS before passing it to the chart options. Please check the below code snippet –

    var dataPoints =[];	
    $.getJSON("/Dashboard/GetData/",function(data) {
      for(var i=0; i<=data.length-1; i++) {
        dataPoints.push({label:data[i].Title,y:parseInt(data[i].Credits)});
      }
      var chart = new CanvasJS.Chart("chartContainer", {
        theme: "theme2",
        title: {
          text: "CanvasJS Charts in ASP.Net MVC using AJAX & JSON"
        },
        data: [
          {
            type: "column",
            dataPoints: dataPoints
          }
        ]
      });
      chart.render();
    });

    CanvasJS Charts in ASP.Net MVC using JSON and AJAX

    in reply to: Display Chart using JSON data in ASP MVC #6454

    [Update]

    Now we have a Tutorial on Creating Charts from JSON Data in ASP.NET MVC.

    Can you please post the JSON Response, so that we can figure out where exactly is the problem.

    in reply to: export several charts to pdf #6453

    jsPDF seems like the best option according to us. May I know what you mean by process is more manual?

    in reply to: pie charts requirements #6448

    i am able to get network packet count from all the machines and display the stats

    Sorry, but we are not able to understand how we can help you if you are already able to render the data.

    in reply to: How can I use PHP MySQL Dynamic data #6444

    Raghavendra,

    I think this thread should be of help for you.

    in reply to: pie charts requirements #6443

    Can you please describe your requirement in detail with some relevant links so that we can suggest you on how to go with the same?

Viewing 15 posts - 151 through 165 (of 171 total)