amcharts / amcharts3-angular2

Official Angular 2 plugin for amCharts V3
99 stars 35 forks source link

Gantt Chart segments do not have correct length, only less number of segments is displayed #96

Closed padmaruban closed 5 years ago

padmaruban commented 5 years ago

Hi @amcharts . I am using amchart3 gantt chart with angular 6. It is working fine for less number of segments and categories. I have data with more than 30 categories and segments in it. It is loading gantt chart incorrectly with less number of segments and these segments' length are not in correct size. Please help me to make this work correctly.

martynasma commented 5 years ago

Would you be able to post your chart config?

padmaruban commented 5 years ago

Hi @martynasma, Here is the sample data file with chart configuration code for reference .

support.zip

Thanks in advance

martynasma commented 5 years ago

Thank you.

I'm trying to make a sense of your data. What start and end values are supposed to represent? Right now they are used as JavaSrtipt timestamps, which means number of milliseconds from 1970. Is that how you intended it to be used?

https://codepen.io/team/amcharts/pen/d994ec37a2962795c26fb61b29915436?editors=0010

padmaruban commented 5 years ago

Hi @martynasma Thanks for the reply.

I was trying with the javascript timestamps straight away previously. It resulted the same as we get now. It did not work in a way of displaying time in the X axis. Thats why I tried with converting them to minutes (javascript timestamp/ (60*1000)). That start value is actually converted data as stated here.

padmaruban commented 5 years ago

Thank you.

I'm trying to make a sense of your data. What start and end values are supposed to represent? Right now they are used as JavaSrtipt timestamps, which means number of milliseconds from 1970. Is that how you intended it to be used?

https://codepen.io/team/amcharts/pen/d994ec37a2962795c26fb61b29915436?editors=0010

I have tried the following.

  1. changed start and end values in Javascript timestamps,
  2. Ignored duration value
  3. configuration changes { "period": "fff" } It now displays all the segments, and time in X axis.

@martynasma Thank you very much for your support.