Skip to content

Fully remove all padding/whitespaces, chart should go end to end of canvas #1948

@MickL

Description

@MickL

I am trying to make a minimal area chart with no success. It seems like it is not possible to remove "everything" including any paddings?

Image

Config:

const chartOptions: DeepPartial<ChartOptions> = {
    layout: {
      attributionLogo: false,
    },
    handleScroll: false,
    handleScale: false,
    grid: {
      vertLines: { visible: false },
      horzLines: { visible: false },
    },
    crosshair: { mode: CrosshairMode.Hidden },
    leftPriceScale: {
        visible: false,
        scaleMargins: { top: 0, bottom: 0 },
    },
    rightPriceScale: {
        visible: false,
    },
    timeScale: {
        visible: false,
    },
};

I would love to either:

  • Have an option to remove all whitespaces and paddings wo the chart goes from end-to-end of the canvas
  • OR even a setting minimal: true that removes everything
  • OR have some more examples on the website/docs how to archive specific things

P.S. Here seems to be no padding on the left, but there is some at the right: https://www.tradingview.com/widget-docs/widgets/charts/mini-chart/

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