Sha256: d9cca98a565d25ec1af16eea4101ec2994c8c09f1d67d795bff78e6061023010
Contents?: true
Size: 954 Bytes
Versions: 615
Compression:
Stored size: 954 Bytes
Contents
import { commonSettings } from '../pb_dashboard/commonSettings.js' import typography from '../tokens/exports/_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) => { 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 pbLineGraph = (highchart) => { commonSettings(highchart) styleDataLabels(highchart) markerStyles(highchart) fixTooltipStyles() } export default pbLineGraph
Version data entries
615 entries across 615 versions & 1 rubygems