Skip to content

How can I center the chart? #146

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 + "%"; }),}
          }
        },
     }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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