amcharts / amcharts3-react

Official amCharts V3 React component
Apache License 2.0
118 stars 50 forks source link

There is no horizontal scroll #77

Open blacktender opened 6 years ago

blacktender commented 6 years ago

Hello!

https://www.amcharts.com/demos/gantt-chart/ https://www.amcharts.com/demos/gantt-chart-dates/

Horizontal vertical is not drawn. clip2net_180531170836

What could be the problem?

Thanks

amcharts commented 6 years ago

New comment from Zendesk by Anthony Piris on ticket 37218. (replying here will automatically notify amCharts support agent)

Hi there,

Make sure you have a valueScrollbar defined in your config like in the demos you linked in order to enable the horizontal scrollbar in the gantt chart. If you want the vertical scrollbar, define a chartScrollbar.

const config = {
   // ...
  valueScrollbar: {
    // ... horizontal scrollbar
    // ... takes all properties for chartScrollbar
  },
  chartScrollbar: {
    // ... vertical scrollbar
  },
  // ...
}

I hope this helps.

Best,

Anthony Piris amCharts

blacktender commented 6 years ago

We already have defined valueScrollbar and chartScrollbar in our gantt chart config objects and there are no scrollbars. Actually, we use the same configs that are defined in demos, but with React component it doesn't work (those examples that are described in my first message).

xorspark commented 6 years ago

@blacktender If you're still having this issue, could you provide a codepen or stackblitz that reproduces the problem? The scrollbars are showing up correctly for me here using the component.