Sha256: eaa0c924b568fdb29c76b50e9d06759db3e20e753a59dec84a83ec252ffee51b
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 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; }; const pbLineGraph = highchart => { commonSettings(highchart); styleDataLabels(highchart); markerStyles(highchart); fixTooltipStyles(); }; export default pbLineGraph;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-2.9.3 | app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js |