Sha256: 0355fefc39153de69c53cfe2d089bc2da7d05ccad5bcbb50564316f4c6200918
Contents?: true
Size: 958 Bytes
Versions: 9
Compression:
Stored size: 958 Bytes
Contents
import { commonSettings } from "../pb_dashboard/commonSettings.js"; import typography from "../tokens/_typography.scss"; const markerStyles = highchart => { highchart.plotOptions.line.marker.enabled = true; highchart.plotOptions.series.marker.enabled = true; highchart.plotOptions.series.marker.fillColor = "white"; highchart.plotOptions.series.marker.lineWidth = 2; }; const fixTooltipStyles = () => { document.getElementById("main-view").setAttribute("style", "position: static !important"); }; 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 pbLineGraph = highchart => { commonSettings(highchart); styleDataLabels(highchart); markerStyles(highchart); fixTooltipStyles(); }; export default pbLineGraph;
Version data entries
9 entries across 9 versions & 1 rubygems