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-8.1.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.3 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.2.0.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.1.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.2 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.2.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.1.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.0.pre.alpha5 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.0.pre.alpha4 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-8.0.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.16.0.pre.alpha5 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.16.0.pre.alpha4 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.16.0 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
playbook_ui-7.15.1 app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js