Sha256: 7f1f76f31e4db166d373068808472c8dbea88cc1d67343ed457340a331d14cd7

Contents?: true

Size: 893 Bytes

Versions: 9

Compression:

Stored size: 893 Bytes

Contents

import { commonSettings } from "../pb_dashboard/commonSettings.js";
import typography from "../tokens/_typography.scss";

const sizeColumns = function(highchart) {
  let column = highchart.plotOptions.column;
  let series = highchart.plotOptions.series;

  column.borderRadius = 0;
  column.pointPadding = 0.3;
  column.groupPadding = 0;

  series.borderWidth = 0;
  series.shadow = false;
  series.pointPadding = 0.25;
  series.groupPadding = 0;
};

const styleDataLabels = highchart => {
  let series = highchart.plotOptions.series;

  series.dataLabels.style.fontFamily = typography.font_family_base;
  series.dataLabels.style.fontSize = typography.text_small;
  series.dataLabels.style.fontWeight = typography.bold;
};

const barGraphSettings = function(highchart) {
  commonSettings(highchart);
  sizeColumns(highchart);
  styleDataLabels(highchart);
};

export default barGraphSettings;

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
playbook_ui-3.1.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-3.0.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-3.0.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-2.9.9 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-2.9.8 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-2.9.7 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-2.9.6 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-2.9.5 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-2.9.4 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js