Forum Replies Created by Suyash Singh

Viewing 15 posts - 256 through 270 (of 284 total)
  • in reply to: canvas.min.js Error #14577

    @vinaycr7,

    Can you please provide us information about the error. And also create a jsfiddle reproducing the issue that will help us to understand better and help you out.

    ___
    Suyash Singh
    Team CanvasJS

    in reply to: Context Menu #14551

    @oneworld,

    Please take a look at this jsfiddle.

    __
    Suyash Singh
    Team CanvasJS

    in reply to: 'getTime' of undefined #14543

    @Aarushi,

    Glad that the issue was resolved.

    __
    Suyash Singh
    Team CanvasJS

    in reply to: indexLabel #14522

    @vinhduc,

    As of now indexLabels support only strings. However if you are trying to make indexLabels bolder, you can use indexLabelFontWeight property.
    __
    Suyash Singh
    Team CanvasJS

    in reply to: Sort Stacked Bar Chart By Value #14496

    @ipsjolly,

    Surely we can help you with this. The solution depends on how you want the dataPoints to be sorted. Can you kindly create a jsfiddle, so that we can look into you code and help you out.
    __
    Suyash Singh
    Team CanvasJS

    in reply to: When we have values with large difference #14493

    @ipsjolly,

    This can be achieved using axis scale breaks, which is on our roadmap and will be released in future versions.


    Suyash Singh
    Team CanvasJS

    in reply to: How to change zoom icon #14491

    @y-hirano,

    It is possible to change the zoom/pan icons using CSS. Please refer this jsfiddle.
    __
    Suyash Singh
    Team CanvasJS

    in reply to: Number of Labels on the xAxis #14490

    Kristoffer,

    Please refer this page for info on intervalType. Can you kindly create a working jsfiddle, so that we can understand the code better and help you out resolving the issue.

    __
    Suyash Singh
    Team CanvasJS

    in reply to: Number of Labels on the xAxis #14479

    Kristoffer,

    You can achieve this using interval and intervalType.
    __
    Suyash Singh
    Team CanvasJS

    in reply to: Gantt Chart #14474

    Steve,

    Gantt chart is in our roadmap, but no timeline has been fixed for it as of now.

    __
    Suyash Singh
    Team CanvasJS

    in reply to: Gantt Chart #14472

    Steve,

    It is not possible to assign dateTime values as the y value in dataPoints, therefore it is not possible to create a Gantt Chart which contains dateTime values on the y-axis. But as a workaround, it is possible to use rangeBar chart and provide timestamp values as y-values and use CanvasJS.formatDate() in labelFormatter to convert the labels which is in timeStamp values into dateTime values. You can use the same logic in contentFormatter property as well to show the dateTime values in toolTip.

    Please take a look at this code snippet below,

      axisY: {
        minimum: (new Date(2016, 0, 28, 12, 0)).getTime(),            
        interval: (1 * 60 * 60 * 1000),
        labelFormatter: function(e){
          return CanvasJS.formatDate(e.value, "DD - h:mm TT");
        },
        gridThickness: 2
      },
    
      toolTip:{
        contentFormatter: function ( e ) {
          return "<strong>" + e.entries[0].dataPoint.label + "</strong></br> Start: " +  CanvasJS.formatDate(e.entries[0].dataPoint.y[0], "DD - h:mm TT") + "</br>End : " +  CanvasJS.formatDate(e.entries[0].dataPoint.y[1], "DD - h:mm TT");  
        }}

    Also, kindly take a look at this JSFiddle for the complete code as an example on creating a workaround Gantt Chart using CanvasJS.formatDate method.

    timeline chart using rangebar chart

    Suyash Singh
    Team CanvasJS

    in reply to: Activity timeline chart #14466

    @isuru

    Can you kindly create a working jsfiddle, so that we can understand the code better and help you out?

    __

    Suyash Singh
    Team CanvasJS

    in reply to: Activity timeline chart #14463

    @isuru

    Can you kindly brief more about the problem you are facing?

    __

    Suyash Singh
    Team CanvasJS

    in reply to: Label Interval Not Working #14448

    @oneworld,

    interval and intervalType properties will work irrespective of the chart type – static or dynamic.

    axisX: {
        inteval: 4, // interval
        intervalType: "second"
      },

    There is a typo in your code. Please change inteval to interval and it should work fine.

    __
    Suyash Singh
    Team CanvasJS

    in reply to: Line Graph Point Connection Bug #14420

    @saul_romero,

    Updating legend text dynamically seems to be working fine. Please take a look at this updated JSFiddle.

    If you are still facing issue, can you kindly create a JSFiddle reproducing the issue you are facing and share it with us so that we can understand the scenario better and help you out?

    __
    Suyash Singh
    Team CanvasJS

Viewing 15 posts - 256 through 270 (of 284 total)