UNPKG

wix-style-react

Version:
53 lines 1.32 kB
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; import { stVars } from './AreaChart.st.css'; export var DATASET_PROPS = { backgroundColor: stVars.datasetBg, borderColor: stVars.datasetLineColor, borderWidth: 2, pointBorderColor: stVars.pointBorderColor, pointHoverBackgroundColor: stVars.pointHoverBackgroundColor, pointHoverBorderColor: stVars.pointHoverBorderColor, lineTension: 0.12, pointBackgroundColor: 'transparent', pointHitRadius: 1, pointHoverBorderWidth: 2 }; export var OPTIONS_PROPS = { maintainAspectRatio: false, hover: { mode: 'index', intersect: false, animationDuration: 0 }, legend: { display: false, labels: { family: 'Madefor' } } }; export var GRIDLINE_PROPS = { borderDash: [1, 1], color: [stVars.gridLineZeroLineColor].concat(_toConsumableArray(new Array(90).fill(stVars.gridLineFontColor))), borderDashOffset: 1, drawBorder: true }; export var Y_AXES_TICKS_PROPS = { beginAtZero: true, labelOffset: 4, padding: 5 }; export var TOOLTIP_PROPS = { backgroundColor: stVars.tooltipBg, mode: 'index', intersect: false, caretPadding: 10, xPadding: 24, yPadding: 14, xAlign: 'center', yAlign: 'bottom', displayColors: false, bodyFontSize: 14, bodySpacing: 4, cornerRadius: 8 };