Forum Replies Created by Manoj Mohan

Viewing 15 posts - 616 through 630 (of 796 total)
  • in reply to: Issue with Pie chart label lines #27366

    @mortenlau,

    Could you explain how these width and height values are used by your algorithm ie. how is it that this fixes the problem? I have to cope with varying screen sizes in this application so I will need to understand exactly how to dynamically derive those values to be ones that work. Understanding what it is about those values that makes the labels display correctly will help.

    To make the chart responsive, the chart is re-rendered when the window is resized with the updated size of the container. And upon resize of the chart, labels/indexLabels of the chart are readjusted to avoid overlapping.

    Actually your proposed workaround works for this specific chart but not for others. In the following example, your setting of width 50% and height 300px still results in label display issues. I need a solution that will reliably work regardless of the pie chart size and screen size – the data varies, so the screen layout varies.

    Sorry, we are unable to reproduce the issue at our end. Can you kindly share steps to reproduce the issue? Meanwhile you can try re-rendering the chart on changing the view to fullscreen, which might fix the issue in this case.

    —-
    Manoj Mohan
    Team CanvasJS

    @mr_rosey,

    Sorry, we are unable to reproduce the issue at our end. Can you kindly create a sample project reproducing the issue along with sample data and share it over Google-Drive or One Drive so that we can look into your code, understand your scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Stepline Graph #27322

    @utsavgupta,

    The image shared above seems to be broken. Can you kindly share a pictorial representation(with a live link) and brief us further about your exact requirement so that we can understand your scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Issue with Pie chart label lines #27321

    Alex,

    Setting the width and height of the chart-container-left (div) should work fine in your case. Please take a look at this updated project.

    —-
    Manoj Mohan
    Team CanvasJShan
    Team CanvasJS

    in reply to: canvasjs shift with json database #27320

    @mahmadakbar,

    Can you kindly share a sample project reproducing the issue along with sample data over Google-Drive or Onedrive so that we can look into the code, run it locally to understand the scenario better and help you resolve?


    Manoj Mohan
    Team CanvasJS

    in reply to: Dynamic chart with fixed X Axis #27302

    @utsavgupta,

    Can you please brief us further about your requirements along with some example or pictorial representation so that we can understand your scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: CanvasJs Graph on IOS/Android #27263

    Domenic,

    Can you kindly share a sample project reproducing the issue over google-drive or one-drive so that we can look into the code, understand the scenario better and help you out?

    —–
    Manoj Mohan
    Team CanvasJS

    in reply to: Cannot import to React #27256

    @meg_lai,

    Please take a look at this sample project for integrating CanvasJS with React. You can also checkout our React Gallery for more examples.

    Basic Column Chart in React

    If you are still facing the issue, kindly share a sample project reproducing the issue over google-drive or one-drive so that we can look into the code, understand the scenario better and help you out.

    —–
    Manoj Mohan
    Team CanvasJS

    in reply to: Removing vertical lines and keeping x-axis and y-axis only #27246

    @srisrim,

    You can remove vertical and horizontal axis lines by setting lineThickness, gridThickness and tickLength to 0 for axisX and axisY as shown in the below code snippet.

    axisX:{
    	lineThickness: 0,
    	tickThickness: 0
    },
    axisY:{
    	lineThickness: 0,
    	gridThickness: 0,
    	tickLength: 0
    }

    To make chart background as transparent, you can set backgroundColor property to transparent. Please take a look this JSFiddle for an example on chart with transparent background and without horizontal and vertical axis lines.

    Chart with no vertical and horizontal lines

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Too much time to load #27245

    @mschafer,

    The size of the library is just a few KB and should not take more time to load. If possible can you try creating a simple project using the commercial version on a different system.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: stacked Bar chart #27242

    @sravanthi-b,

    Stacked Bar Charts are plotted when multiple Bar Charts with aligned x values are plotted on same axis. Adding x-values to the dataPoints should work fine in your case.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Example Multi Series PHP Spline Chart? #27241

    @n5ssh,

    Please take a look at this gallery page for displaying multi-series line charts in PHP. For more examples on the integration of CanvasJS with PHP, please checkout our PHP gallery page.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Dynamically generated chart displaying wrong format #27240

    @sravanthi-b,

    Stacked Bar Charts are plotted when multiple Bar Charts with aligned x values are plotted on same axis. Adding x-values to the dataPoints should work fine in your case.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Problem Line-Chart / Chart header #27213

    @netengine,

    The interval and range of axis are calculated based on the height and width of the chart. You can use get method to fetch the interval, maximum and minimum value of the axisY from the first chart and set the same value for the second chart using set method as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    in reply to: Formatting Numbers in Chart #27212

    @erigin,

    You can set the culture property of the chart to achieve your requirement. Please refer to this documentation page for more information and live example for the same.

    —-
    Manoj Mohan
    Team CanvasJS

Viewing 15 posts - 616 through 630 (of 796 total)