Skip to content

How can I center the chart? #146

@palmy-investing

Description

@palmy-investing

May sound stupid, but I am not sure how I can display the chart in a more centered way, because it is near the top, which looks confusing:

[https://imgur.com/a/7oVPA9G](imgur pic)

Here are my options:

options: {
        plugins: {
            legend: {
                display: false,
            },
            title: {
                display: true,
                text: 'OHLC for {{ stock }}',
            }
        },
        scales: {
          x: {
            type: 'timeseries',
            time: {
                unit: 'day',
              },
            },

          y:{
            beginAtZero: true,  type: "linear",ticks: { count: 11, }
          },
          right: {
            beginAtZero: true, position: 'right',
            ticks: { count: 11, callback: ((value, index, ticks) => { return value * 100 + "%"; }),}
          }
        },
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions