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