💸 Reduce costs by consolidating proprietary analytics & reporting software to open-source & Dash.
Challenge us to replace your analytics with Dash and reduce costs.

Y axis for large amont of data

I have some difficulties to display my bar chart,
my dataset is composed of 2000 lines.


How can I improve the display of my bar chart ? Do I must to fix the Y axis ?

Any help is welcome,

Best regards

Hi @notafk,

have you considered using a logarithmic y-axis?

BR, Alex

PS: when you share a code block don’t upload a picture but use triple back ticks to wrap your code in it.

1 Like

Hi @Alexboiboi,

The only way to bypass this problem that I found :

  • convert X axis into string
  • display only the last 200 rows of the dataset
  • calculate the maximum value of the Y axis (barmax)

fig['layout']['yaxis1'].update(title='', range=[0, barmax], autorange=False)