How to use the plottable.Components.AxisLabel function in plottable

To help you get started, we’ve selected a few plottable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github devinit / datahub / src / components / organisms / Charts / components / BarChart / BarChart.tsx View on Github external
private setAxisLabel(configs: AxisConfig, chartTable: Table, row: number, column: number) {
    if (configs.label && configs.label.show) {
      const label = new Components.AxisLabel(configs.label.caption, configs.label.angle || -90);
      chartTable.add(label, row, column);
    }
  }
github devinit / datahub / src / components / organisms / Charts / shared / BarLine / labels.ts View on Github external
export const getXAxisLabel = (configs: Partial): Components.AxisLabel | null => {
  return configs.label && configs.label.show
    ? new Components.AxisLabel(configs.label.caption, configs.label.angle || 0)
    : null;
};
github devinit / datahub / src / components / organisms / Charts / components / LineChart / LineChart.tsx View on Github external
private setAxisLabel(configs: AxisConfig, chartTable: Table, row: number, column: number) {
    if (configs.label && configs.label.show) {
      const label = new Components.AxisLabel(configs.label.caption, configs.label.angle || -90);
      chartTable.add(label, row, column);
    }
  }
github devinit / datahub / src / components / organisms / Charts / shared / BarLine / labels.ts View on Github external
export const getYAxisLabel = (configs: Partial): Components.AxisLabel | null => {
  return configs.label && configs.label.show
    ? new Components.AxisLabel(configs.label.caption, configs.label.angle || -90)
    : null;
};