Forum Replies Created by Manoj Mohan

Viewing 15 posts - 301 through 315 (of 796 total)
  • in reply to: How to control axis tick with float number? #32855

    @jeonkook,

    Setting floating values in minimum and maximum of y-axis seems to be working fine. Please take a look at this JSFiddle for the same.

    axisY: {
        maximum: 7.4,
        minimum: 7.2
    }

    Setting Floating values in minimum and maximum of y-axis

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

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: chart with data from json #32820

    Nicola Presa,

    Based on the data you have shared above and considering your requirement, using CanvasJS StockChart will suit your scenario. It comes with built-in features like inputfields and range buttons using which you can select a specific range that is needed to be displayed in the viewport. Selecting the last 250, 500 or 750 days can be achieved using custom range buttons for which you can define the range and rangeType property as shown in the below code snippet.

    buttons: [
          {
            label: "250 Days",
            range: 250,
            rangeType: "day"
          },
          {
            label: "500 Days",
            range: 500,
            rangeType: "day"
          },
          {
            label: "750 Days",
            range: 750,
            rangeType: "day"
          },
          {
            label: "All",
            rangeType: "all"
          }
    ]

    Also, for selecting precise date range (data to date range), you can use inputFields. Please take a look at this JSFiddle for an example.

    Selecting range using Range Buttons and Inputfields

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Xaxis line alignment #32790

    @swebs,

    Gridlines are drawn at every interval and it is not possible to offset gridlines as of now. However, you can use stripLines to achieve your requirement as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: How to display a Chart? #32786

    Daniel,

    Can you kindly share an example and brief us further about the requirement?

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: How to display a Chart? #32734

    @charthelpplz,

    Can you kindly create sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive so that we can look into your code / chart-options being used, understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: How to control chart shape and space? #32687

    @jeonkook,

    Can you kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into your code / chart-options being used, understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: StockChart with Label breaks range and nav features #32674

    @ekaqu1028,

    Glad that you were able to solve your use-case.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Issues With Same Value < 1 On Logarithmic Axes #32673

    @bfailing,

    Thanks for reporting the use-case. For now, you can workaround this issue by setting minimum of axisY as shown in this JSFiddle.

    Considering this thread as duplicate of Issues With Same Value < 1 On Logarithmic Axes and hence closing the same.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Issues With Same Value < 1 On Logarithmic Axes #32671

    @bfailing,

    Thanks for reporting the use-case. For now, you can workaround this issue by setting minimum of axisY as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: StockChart with Label breaks range and nav features #32658

    @ekaqu1028,

    You can use x-value instead of label & use scaleBreak to remove gap of non-trading hours. Please take a look at this JSFiddle for an example on removing weekend gap.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Hard to zoom around corners of graph #32641

    @nferxchartjs,

    You can set viewportMaximum for x-axis with some margin upon updating dataPoints as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Order by Value #32600

    rodolfo,

    To sort the dataPoints for multi-series bar chart, you need to sort the dataPoints for each of data series present in the multi-series bar chart. Please take a look the code snippet below for the same.

    chart.options.data.forEach(function(element) {
       element.dataPoints.sort(compareDataPoint);
    });
    
    function compareDataPoint(dataPoint1, dataPoint2) {
      // instead of label you can also use dataPoint.x  or dataPoint.y depends on you requirment
      if (dataPoint1.label < dataPoint2.label){return -1}
      if ( dataPoint1.label > dataPoint2.label){return 1}
    
      return 0
    }

    Also, check out this JSFiddle for the complete working code.

    Sorting Data Points in Multi-Series Bar Charts

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

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: viewPort Max/Min with date value #32580

    @canvasjsuser001,

    Thanks for reporting the use-case. We will fix this issue in our future versions. However, you can work-around the issue by setting minimum property of axisX as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: re-render, viewport, zooming #32567

    @samarit,

    [UPDATE]

    We have just released StockChart v1.10.7 with this bug fix. Please refer to the release blog for more information. Do download the latest version from download page & let us know your feedback.

    Thanks for reporting the use-case. The issue seems to be happening when navigator is disabled. We will fix this issue in our future versions. However, you can achieve your requirement using Chart instead of StockChart (using canvasjs.stock.min.js, you can create both Chart and StockChart) as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: re-render, viewport, zooming #32557

    @samarit,

    Can you kindly create JSFiddle and share it with us (or a sample project and share it with us over Google-Drive or OneDrive) along with further briefing about the issue you are facing so that we can look into code / chart-options being used, understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

Viewing 15 posts - 301 through 315 (of 796 total)