2

I have a chartJS chart rendered in Django with chartkick. How do I specify the options.

{% column_chart data %}

For example I would like to add the following:

options: { layout: { padding: { bottom: 5 } } }

Wessi
  • 1,702
  • 4
  • 36
  • 69

1 Answers1

4

I found out that the syntax is:

{% column_chart price_data with library={"layout":{"padding":{"bottom":20}}} %}

Wessi
  • 1,702
  • 4
  • 36
  • 69