UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

667 lines (666 loc) • 18.4 kB
/** * DevExtreme (esm/__internal/viz/core/themes/generic/light/chart.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { BLACK, BOTTOM, CENTER, INSIDE, LEFT, LIGHT_GREY, NONE, OUTSIDE, RED, RIGHT, SOLID, TOP, WHITE } from "./contants"; export default { "chart:common": { animation: { enabled: true, duration: 1e3, easing: "easeOutCubic", maxPointCountSupported: 300 }, commonSeriesSettings: { border: { visible: false, width: 2 }, showInLegend: true, visible: true, hoverMode: "nearestPoint", selectionMode: "includePoints", hoverStyle: { hatching: { direction: RIGHT, width: 2, step: 6, opacity: .75 }, highlight: true, border: { visible: false, width: 3 } }, selectionStyle: { hatching: { direction: RIGHT, width: 2, step: 6, opacity: .5 }, highlight: true, border: { visible: false, width: 3 } }, valueErrorBar: { displayMode: "auto", value: 1, color: BLACK, lineWidth: 2, edgeLength: 8 }, label: { visible: false, alignment: CENTER, rotationAngle: 0, horizontalOffset: 0, verticalOffset: 0, radialOffset: 0, showForZeroValues: true, customizeText: void 0, maxLabelCount: void 0, position: OUTSIDE, font: { color: WHITE }, border: { visible: false, width: 1, color: LIGHT_GREY, dashStyle: SOLID }, connector: { visible: false, width: 1 } } }, seriesSelectionMode: "single", pointSelectionMode: "single", equalRowHeight: true, dataPrepareSettings: { checkTypeForAllData: false, convertToAxisDataType: true, sortingMethod: true }, title: { margin: 10 }, adaptiveLayout: { width: 80, height: 80, keepLabels: true }, _rtl: { legend: { itemTextPosition: LEFT } }, resolveLabelOverlapping: NONE }, "chart:common:axis": { visible: true, valueMarginsEnabled: true, placeholderSize: null, logarithmBase: 10, discreteAxisDivisionMode: "betweenLabels", aggregatedPointsPosition: "betweenTicks", width: 1, label: { visible: true }, grid: { visible: false, width: 1 }, minorGrid: { visible: false, width: 1, opacity: .3 }, tick: { visible: true, width: 1, length: 7, shift: 3 }, minorTick: { visible: false, width: 1, opacity: .3, length: 7, shift: 3 }, stripStyle: { paddingLeftRight: 10, paddingTopBottom: 5 }, constantLineStyle: { width: 1, color: BLACK, dashStyle: SOLID, label: { visible: true, position: INSIDE } }, marker: { label: {} } }, "chart:common:annotation": { font: { color: "#333333" }, tooltipEnabled: true, border: { width: 1, color: "#dddddd", dashStyle: SOLID, visible: true }, color: WHITE, opacity: .9, arrowLength: 14, arrowWidth: 14, paddingLeftRight: 10, paddingTopBottom: 10, shadow: { opacity: .15, offsetX: 0, offsetY: 1, blur: 4, color: BLACK }, image: { width: 30, height: 30 }, wordWrap: "normal", textOverflow: "ellipsis", allowDragging: false }, chart: { commonSeriesSettings: { type: "line", stack: "default", aggregation: { enabled: void 0 }, point: { visible: true, symbol: "circle", size: 12, border: { visible: false, width: 1 }, hoverMode: "onlyPoint", selectionMode: "onlyPoint", hoverStyle: { border: { visible: true, width: 4 } }, selectionStyle: { border: { visible: true, width: 4 } } }, scatter: {}, line: { width: 2, dashStyle: SOLID, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, stackedline: { width: 2, dashStyle: SOLID, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, stackedspline: { width: 2, dashStyle: SOLID, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, fullstackedline: { width: 2, dashStyle: SOLID, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, fullstackedspline: { width: 2, dashStyle: SOLID, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, stepline: { width: 2, dashStyle: SOLID, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, area: { point: { visible: false }, opacity: .5 }, stackedarea: { point: { visible: false }, opacity: .5 }, fullstackedarea: { point: { visible: false }, opacity: .5 }, fullstackedsplinearea: { point: { visible: false }, opacity: .5 }, steparea: { border: { visible: true, width: 2 }, point: { visible: false }, hoverStyle: { border: { visible: true, width: 3 } }, selectionStyle: { border: { visible: true, width: 3 } }, opacity: .5 }, spline: { width: 2, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3 } }, splinearea: { point: { visible: false }, opacity: .5 }, stackedsplinearea: { point: { visible: false }, opacity: .5 }, bar: { cornerRadius: 0, point: { hoverStyle: { border: { visible: false } }, selectionStyle: { border: { visible: false } } } }, stackedbar: { cornerRadius: 0, point: { hoverStyle: { border: { visible: false } }, selectionStyle: { border: { visible: false } } }, label: { position: INSIDE } }, fullstackedbar: { cornerRadius: 0, point: { hoverStyle: { border: { visible: false } }, selectionStyle: { border: { visible: false } } }, label: { position: INSIDE } }, rangebar: { cornerRadius: 0, point: { hoverStyle: { border: { visible: false } }, selectionStyle: { border: { visible: false } } } }, rangearea: { point: { visible: false }, opacity: .5 }, rangesplinearea: { point: { visible: false }, opacity: .5 }, bubble: { opacity: .5, point: { hoverStyle: { border: { visible: false } }, selectionStyle: { border: { visible: false } } } }, candlestick: { width: 1, reduction: { color: RED }, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3, highlight: false }, point: { border: { visible: true } } }, stock: { width: 1, reduction: { color: RED }, hoverStyle: { width: 3, hatching: { direction: NONE }, highlight: false }, selectionStyle: { width: 3, highlight: false }, point: { border: { visible: true } } } }, crosshair: { enabled: false, color: "#f05b41", width: 1, dashStyle: SOLID, label: { visible: false, font: { color: WHITE, size: 12 } }, verticalLine: { visible: true }, horizontalLine: { visible: true } }, commonAxisSettings: { multipleAxesSpacing: 5, forceUserTickInterval: false, breakStyle: { width: 5, color: "#ababab", line: "waved" }, label: { displayMode: "standard", overlappingBehavior: "hide", indentFromAxis: 10, wordWrap: "normal", textOverflow: "none" }, title: { font: { size: 16 }, margin: 6, alignment: CENTER }, constantLineStyle: { paddingLeftRight: 10, paddingTopBottom: 10 } }, horizontalAxis: { position: BOTTOM, axisDivisionFactor: 70, label: { rotationAngle: 90, staggeringSpacing: 5, alignment: CENTER }, stripStyle: { label: { horizontalAlignment: CENTER, verticalAlignment: TOP } }, constantLineStyle: { label: { horizontalAlignment: RIGHT, verticalAlignment: TOP } }, constantLines: [] }, verticalAxis: { position: LEFT, axisDivisionFactor: 40, label: { alignment: RIGHT }, stripStyle: { label: { horizontalAlignment: LEFT, verticalAlignment: CENTER } }, constantLineStyle: { label: { horizontalAlignment: LEFT, verticalAlignment: TOP } }, constantLines: [] }, argumentAxis: { endOnTick: false, aggregateByCategory: true, workWeek: [1, 2, 3, 4, 5] }, valueAxis: { grid: { visible: true }, autoBreaksEnabled: false, maxAutoBreakCount: 4 }, commonPaneSettings: { backgroundColor: NONE, border: { color: LIGHT_GREY, width: 1, visible: false, top: true, bottom: true, left: true, right: true, dashStyle: SOLID } }, scrollBar: { visible: false, offset: 5, color: "gray", width: 10 }, adjustOnZoom: true, autoHidePointMarkers: true, rotated: false, synchronizeMultiAxes: true, stickyHovering: true, barGroupPadding: .3, minBubbleSize: 12, maxBubbleSize: .2, zoomAndPan: { dragBoxStyle: { color: "#2a2a2a", opacity: .2 }, panKey: "shift", allowMouseWheel: true, allowTouchGestures: true } } };