Sha256: 7fd6c36e8d00666cc0d31e3039112661636f78191518288423e0cac3459024fe

Contents?: true

Size: 879 Bytes

Versions: 293

Compression:

Stored size: 879 Bytes

Contents

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

const sizeColumns = function(highchart) {
  const column = highchart.plotOptions.column
  const 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) => {
  const 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

293 entries across 293 versions & 1 rubygems

Version Path
playbook_ui-7.15.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.14.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.13.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.12.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.12.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.11.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.11.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.10.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.9.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.8.4 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.8.3 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.8.2 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.8.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.8.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.7.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.6.2 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js