@oanda/labs-crowd-view-widget 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +444 -0
- package/dist/main/CrowdViewWidget/Main.js +4 -2
- package/dist/main/CrowdViewWidget/Main.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/Chart.js +41 -83
- package/dist/main/CrowdViewWidget/components/Chart/Chart.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/ChartWithData.js +23 -17
- package/dist/main/CrowdViewWidget/components/Chart/ChartWithData.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.js +24 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js +30 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/{utils → chartOptions}/getGridLines.js +30 -49
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js +159 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js +47 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.js +83 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.js +68 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.js +60 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.js +31 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.js +57 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js +66 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/index.js +127 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/index.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js +18 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js +18 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/{utils → chartUtils}/getChartStyles.js +4 -4
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getChartStyles.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.js +14 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getLabelData.js +23 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getLabelData.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getRectColor.js +14 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getRectColor.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js +120 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js +59 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.js +34 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/index.js +116 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/index.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.js +15 -0
- package/dist/main/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.js.map +1 -0
- package/dist/main/CrowdViewWidget/{utils/instrumentUtils.js → components/Chart/dataUtils/getInstrumentConfigForDivision.js} +3 -3
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getMultiplayerForTimeSpan.js +19 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getMultiplayerForTimeSpan.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.js +18 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/index.js +19 -8
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/index.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/validateData.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/getOption.js +115 -0
- package/dist/main/CrowdViewWidget/components/Chart/getOption.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/index.js +11 -11
- package/dist/main/CrowdViewWidget/components/Chart/index.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/types.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/useCrowdViewData.js +15 -12
- package/dist/main/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Legend/Legend.js +15 -12
- package/dist/main/CrowdViewWidget/components/Legend/Legend.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Legend/LegendBar.js +15 -16
- package/dist/main/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
- package/dist/main/CrowdViewWidget/constants.js +20 -14
- package/dist/main/CrowdViewWidget/constants.js.map +1 -1
- package/dist/main/CrowdViewWidget/selectConfig.js +0 -6
- package/dist/main/CrowdViewWidget/selectConfig.js.map +1 -1
- package/dist/main/translations/sources/en.json +3 -1
- package/dist/module/CrowdViewWidget/Main.js +4 -2
- package/dist/module/CrowdViewWidget/Main.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/Chart.js +43 -84
- package/dist/module/CrowdViewWidget/components/Chart/Chart.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/ChartWithData.js +22 -16
- package/dist/module/CrowdViewWidget/components/Chart/ChartWithData.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.js +17 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js +23 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/{utils → chartOptions}/getGridLines.js +30 -49
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js +151 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js +39 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.js +76 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.js +61 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.js +53 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.js +24 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.js +50 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js +59 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/index.js +12 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/index.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js +11 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js +11 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/{utils → chartUtils}/getChartStyles.js +4 -4
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getChartStyles.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.js +6 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getLabelData.js +16 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getLabelData.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getRectColor.js +7 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getRectColor.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js +113 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js +52 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.js +27 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/index.js +11 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/index.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.js +8 -0
- package/dist/module/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.js.map +1 -0
- package/dist/module/CrowdViewWidget/{utils/instrumentUtils.js → components/Chart/dataUtils/getInstrumentConfigForDivision.js} +3 -3
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getMultiplayerForTimeSpan.js +12 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getMultiplayerForTimeSpan.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.js +11 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/index.js +8 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/index.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/validateData.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/getOption.js +108 -0
- package/dist/module/CrowdViewWidget/components/Chart/getOption.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/index.js +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/index.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/types.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js +8 -5
- package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Legend/Legend.js +15 -12
- package/dist/module/CrowdViewWidget/components/Legend/Legend.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js +15 -16
- package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
- package/dist/module/CrowdViewWidget/constants.js +18 -13
- package/dist/module/CrowdViewWidget/constants.js.map +1 -1
- package/dist/module/CrowdViewWidget/selectConfig.js +0 -6
- package/dist/module/CrowdViewWidget/selectConfig.js.map +1 -1
- package/dist/module/translations/sources/en.json +3 -1
- package/dist/types/CrowdViewWidget/components/Chart/Chart.d.ts +1 -1
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.d.ts +6 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.d.ts +6 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getGridLines.d.ts +7 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.d.ts +8 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.d.ts +8 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.d.ts +12 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.d.ts +8 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.d.ts +18 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.d.ts +7 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.d.ts +7 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.d.ts +7 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/index.d.ts +11 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.d.ts +1 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.d.ts +1 -0
- package/dist/types/CrowdViewWidget/components/Chart/{utils → chartUtils}/getChartStyles.d.ts +2 -2
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.d.ts +1 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/getLabelData.d.ts +2 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/getRectColor.d.ts +1 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.d.ts +12 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.d.ts +4 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.d.ts +3 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/index.d.ts +10 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.d.ts +1 -0
- package/dist/types/CrowdViewWidget/{utils/instrumentUtils.d.ts → components/Chart/dataUtils/getInstrumentConfigForDivision.d.ts} +2 -2
- package/dist/types/CrowdViewWidget/components/Chart/dataUtils/getMultiplayerForTimeSpan.d.ts +2 -0
- package/dist/types/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.d.ts +2 -0
- package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/index.d.ts +3 -2
- package/dist/types/CrowdViewWidget/components/Chart/index.d.ts +1 -1
- package/dist/types/CrowdViewWidget/components/Chart/types.d.ts +5 -0
- package/dist/types/CrowdViewWidget/components/Legend/Legend.d.ts +1 -4
- package/dist/types/CrowdViewWidget/components/Legend/LegendBar.d.ts +1 -3
- package/dist/types/CrowdViewWidget/constants.d.ts +13 -9
- package/package.json +3 -3
- package/src/CrowdViewWidget/Main.tsx +3 -2
- package/src/CrowdViewWidget/components/Chart/Chart.tsx +76 -109
- package/src/CrowdViewWidget/components/Chart/ChartWithData.tsx +33 -28
- package/src/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.ts +22 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.ts +29 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getGridLines.ts +126 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.ts +191 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.ts +44 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.ts +103 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.ts +72 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.ts +74 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.ts +32 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.ts +68 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.ts +60 -0
- package/src/CrowdViewWidget/components/Chart/chartOptions/index.ts +11 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.ts +13 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.ts +16 -0
- package/src/CrowdViewWidget/components/Chart/{utils → chartUtils}/getChartStyles.ts +9 -6
- package/src/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.ts +16 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/getLabelData.ts +18 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/getRectColor.ts +27 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.ts +212 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.ts +75 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.ts +37 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/index.ts +10 -0
- package/src/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.ts +13 -0
- package/src/CrowdViewWidget/{utils/instrumentUtils.ts → components/Chart/dataUtils/getInstrumentConfigForDivision.ts} +2 -2
- package/src/CrowdViewWidget/components/Chart/dataUtils/getMultiplayerForTimeSpan.ts +13 -0
- package/src/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.ts +14 -0
- package/src/CrowdViewWidget/components/Chart/{utils → dataUtils}/index.ts +3 -2
- package/src/CrowdViewWidget/components/Chart/getOption.ts +138 -0
- package/src/CrowdViewWidget/components/Chart/index.ts +1 -1
- package/src/CrowdViewWidget/components/Chart/types.ts +5 -0
- package/src/CrowdViewWidget/components/Chart/useCrowdViewData.ts +14 -7
- package/src/CrowdViewWidget/components/Legend/Legend.tsx +24 -22
- package/src/CrowdViewWidget/components/Legend/LegendBar.tsx +29 -26
- package/src/CrowdViewWidget/constants.ts +30 -19
- package/src/CrowdViewWidget/selectConfig.ts +0 -8
- package/src/translations/sources/en.json +3 -1
- package/test/components/Chart/utils/chartUtils.test.ts +20 -9
- package/test/components/Chart/utils/getChartStyles.test.ts +10 -10
- package/test/components/Chart/utils/handleLabelUpdate.test.ts +419 -0
- package/test/components/Chart/utils/handleTooltipUpdate.test.ts +140 -0
- package/test/components/Chart/utils/processSentiments.test.ts +1 -1
- package/test/components/Legend.test.tsx +15 -23
- package/test/components/LegendBar.test.tsx +45 -63
- package/test/utils/instrumentUtils.test.ts +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions.js +0 -399
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/chartUtils.js +0 -126
- package/dist/main/CrowdViewWidget/components/Chart/utils/chartUtils.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/getChartStyles.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/getGridLines.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/index.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/processOrderPositionBooks.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/processPriceCandles.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/processSentiments.js.map +0 -1
- package/dist/main/CrowdViewWidget/components/Chart/utils/validateData.js.map +0 -1
- package/dist/main/CrowdViewWidget/utils/instrumentUtils.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions.js +0 -391
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/chartUtils.js +0 -113
- package/dist/module/CrowdViewWidget/components/Chart/utils/chartUtils.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/getChartStyles.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/getGridLines.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/index.js +0 -7
- package/dist/module/CrowdViewWidget/components/Chart/utils/index.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/processOrderPositionBooks.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/processPriceCandles.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/processSentiments.js.map +0 -1
- package/dist/module/CrowdViewWidget/components/Chart/utils/validateData.js.map +0 -1
- package/dist/module/CrowdViewWidget/utils/instrumentUtils.js.map +0 -1
- package/dist/types/CrowdViewWidget/components/Chart/utils/chartUtils.d.ts +0 -30
- package/dist/types/CrowdViewWidget/components/Chart/utils/getGridLines.d.ts +0 -97
- package/src/CrowdViewWidget/components/Chart/chartOptions.ts +0 -449
- package/src/CrowdViewWidget/components/Chart/utils/chartUtils.ts +0 -228
- package/src/CrowdViewWidget/components/Chart/utils/getGridLines.ts +0 -148
- /package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/processOrderPositionBooks.js +0 -0
- /package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.js +0 -0
- /package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.js +0 -0
- /package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/validateData.js +0 -0
- /package/dist/module/CrowdViewWidget/components/Chart/{utils → dataUtils}/processOrderPositionBooks.js +0 -0
- /package/dist/module/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.js +0 -0
- /package/dist/module/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.js +0 -0
- /package/dist/module/CrowdViewWidget/components/Chart/{utils → dataUtils}/validateData.js +0 -0
- /package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/processOrderPositionBooks.d.ts +0 -0
- /package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.d.ts +0 -0
- /package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.d.ts +0 -0
- /package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/validateData.d.ts +0 -0
- /package/dist/types/CrowdViewWidget/components/Chart/{chartOptions.d.ts → getOption.d.ts} +0 -0
- /package/src/CrowdViewWidget/components/Chart/{utils → dataUtils}/processOrderPositionBooks.ts +0 -0
- /package/src/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.ts +0 -0
- /package/src/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.ts +0 -0
- /package/src/CrowdViewWidget/components/Chart/{utils → dataUtils}/validateData.ts +0 -0
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import chroma from 'chroma-js';
|
|
2
|
-
|
|
3
|
-
import { BookType, Granularity, TimeSpan } from '../../../../gql/types/graphql';
|
|
4
|
-
import { CHART_CONFIG, COLOR_MAP, TIME_THRESHOLDS } from '../../../constants';
|
|
5
|
-
import type { Bucket, GetLabelsDataProps, TooltipParam } from '../types';
|
|
6
|
-
|
|
7
|
-
export const getLabelData = ({
|
|
8
|
-
dates,
|
|
9
|
-
isGreaterThanTwoWeeks,
|
|
10
|
-
}: GetLabelsDataProps) =>
|
|
11
|
-
dates
|
|
12
|
-
.filter((record, index, arr) => {
|
|
13
|
-
if (index === 0) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
const previousTimestamp = arr[index - 1];
|
|
17
|
-
const currentDate = new Date(record);
|
|
18
|
-
const previousDate = new Date(previousTimestamp);
|
|
19
|
-
|
|
20
|
-
return isGreaterThanTwoWeeks
|
|
21
|
-
? currentDate.getDate() !== previousDate.getDate()
|
|
22
|
-
: currentDate.getMonth() !== previousDate.getMonth();
|
|
23
|
-
})
|
|
24
|
-
.map((item) => ({
|
|
25
|
-
name: new Date(item).toLocaleDateString(undefined, {
|
|
26
|
-
month: isGreaterThanTwoWeeks ? 'short' : 'long',
|
|
27
|
-
day: isGreaterThanTwoWeeks ? 'numeric' : undefined,
|
|
28
|
-
}),
|
|
29
|
-
xAxis: item,
|
|
30
|
-
y: CHART_CONFIG.MAIN_HEIGHT + CHART_CONFIG.X_LABEL_SIZE - 22,
|
|
31
|
-
silent: true,
|
|
32
|
-
emphasis: {
|
|
33
|
-
disabled: true,
|
|
34
|
-
},
|
|
35
|
-
label: {
|
|
36
|
-
fontFamily: 'Sofia W03',
|
|
37
|
-
fontSize: 10,
|
|
38
|
-
position: 'bottom',
|
|
39
|
-
align: 'center',
|
|
40
|
-
formatter: '{b}',
|
|
41
|
-
},
|
|
42
|
-
}));
|
|
43
|
-
|
|
44
|
-
export const isDifferenceGreaterThanTwoWeeks = (
|
|
45
|
-
startDate: string,
|
|
46
|
-
endDate: string
|
|
47
|
-
) => {
|
|
48
|
-
const date1 = new Date(startDate);
|
|
49
|
-
const date2 = new Date(endDate);
|
|
50
|
-
|
|
51
|
-
const differenceInMs = Math.abs(date2.getTime() - date1.getTime());
|
|
52
|
-
|
|
53
|
-
return differenceInMs < TIME_THRESHOLDS.TWO_WEEKS_MS;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const getTimeSpanForGranularity = (
|
|
57
|
-
granularity: Granularity
|
|
58
|
-
): TimeSpan => {
|
|
59
|
-
const granularityTimeSpanMap: Record<Granularity, TimeSpan> = {
|
|
60
|
-
[Granularity.M5]: TimeSpan.TwoDays,
|
|
61
|
-
[Granularity.M15]: TimeSpan.FiveDays,
|
|
62
|
-
[Granularity.H1]: TimeSpan.TwentyDays,
|
|
63
|
-
[Granularity.H4]: TimeSpan.NinetyDays,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
return granularityTimeSpanMap[granularity] || TimeSpan.TwoDays;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const getGradientColor = (
|
|
70
|
-
value: number,
|
|
71
|
-
startColor: string,
|
|
72
|
-
targetColor: string,
|
|
73
|
-
minThreshold: number,
|
|
74
|
-
maxThreshold: number
|
|
75
|
-
): string => {
|
|
76
|
-
const colorScale = chroma
|
|
77
|
-
.scale([startColor, targetColor])
|
|
78
|
-
.domain([minThreshold, maxThreshold])
|
|
79
|
-
.mode('rgb');
|
|
80
|
-
|
|
81
|
-
return colorScale(value).hex();
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const getRectColor = (
|
|
85
|
-
sentiment: number,
|
|
86
|
-
isDark: boolean,
|
|
87
|
-
minThreshold: number,
|
|
88
|
-
maxThreshold: number
|
|
89
|
-
) => {
|
|
90
|
-
const colorPalette = isDark ? COLOR_MAP.dark : COLOR_MAP.light;
|
|
91
|
-
|
|
92
|
-
return sentiment < 0
|
|
93
|
-
? getGradientColor(
|
|
94
|
-
sentiment * -1,
|
|
95
|
-
colorPalette.short[0],
|
|
96
|
-
colorPalette.short[1],
|
|
97
|
-
minThreshold,
|
|
98
|
-
maxThreshold
|
|
99
|
-
)
|
|
100
|
-
: getGradientColor(
|
|
101
|
-
sentiment,
|
|
102
|
-
colorPalette.long[0],
|
|
103
|
-
colorPalette.long[1],
|
|
104
|
-
minThreshold,
|
|
105
|
-
maxThreshold
|
|
106
|
-
);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export const getTooltipFormatter = ({
|
|
110
|
-
params,
|
|
111
|
-
buckets,
|
|
112
|
-
bucketWidth,
|
|
113
|
-
selectedPrice,
|
|
114
|
-
bookType,
|
|
115
|
-
labelCallback,
|
|
116
|
-
}: {
|
|
117
|
-
params: TooltipParam[];
|
|
118
|
-
buckets: Bucket[][];
|
|
119
|
-
bucketWidth: number;
|
|
120
|
-
selectedPrice: number;
|
|
121
|
-
bookType: BookType;
|
|
122
|
-
labelCallback: (key: string) => string;
|
|
123
|
-
}) => {
|
|
124
|
-
const bucketDisplayPrecision =
|
|
125
|
-
bucketWidth.toString().split('.')[1]?.length || 0;
|
|
126
|
-
|
|
127
|
-
if (!params || !Array.isArray(params) || params.length === 0) {
|
|
128
|
-
return undefined;
|
|
129
|
-
}
|
|
130
|
-
const candleParam = params.find(
|
|
131
|
-
(series): series is Extract<TooltipParam, { seriesId: 'candlestick' }> =>
|
|
132
|
-
series.seriesId === 'candlestick'
|
|
133
|
-
);
|
|
134
|
-
const booksParam = params.find(
|
|
135
|
-
(series): series is Extract<TooltipParam, { seriesId: 'heatmap' }> =>
|
|
136
|
-
series.seriesId === 'heatmap'
|
|
137
|
-
);
|
|
138
|
-
const sentimentParam = params.find(
|
|
139
|
-
(series): series is Extract<TooltipParam, { seriesId: 'sentiment' }> =>
|
|
140
|
-
series.seriesId === 'sentiment'
|
|
141
|
-
);
|
|
142
|
-
|
|
143
|
-
if (!candleParam) {
|
|
144
|
-
return undefined;
|
|
145
|
-
}
|
|
146
|
-
const time = new Date(candleParam.axisValue as string);
|
|
147
|
-
|
|
148
|
-
const candleData = candleParam.value;
|
|
149
|
-
const bucketsIndex = booksParam?.value[2];
|
|
150
|
-
const selectedBuckets =
|
|
151
|
-
bucketsIndex !== undefined ? buckets[bucketsIndex] : undefined;
|
|
152
|
-
|
|
153
|
-
const matchedBucket = selectedBuckets?.find(
|
|
154
|
-
({ price }) => selectedPrice >= price && selectedPrice < price + bucketWidth
|
|
155
|
-
);
|
|
156
|
-
const showCandles =
|
|
157
|
-
!!candleData[1] && !!candleData[2] && !!candleData[3] && !!candleData[4];
|
|
158
|
-
|
|
159
|
-
if (!showCandles && !matchedBucket) {
|
|
160
|
-
return undefined;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
const showSentiment =
|
|
164
|
-
!!sentimentParam?.value[1] && !!sentimentParam?.value[2];
|
|
165
|
-
|
|
166
|
-
return `<p>${time.toLocaleString(undefined, {
|
|
167
|
-
hour: '2-digit',
|
|
168
|
-
minute: '2-digit',
|
|
169
|
-
year: 'numeric',
|
|
170
|
-
day: 'numeric',
|
|
171
|
-
month: 'numeric',
|
|
172
|
-
timeZoneName: 'short',
|
|
173
|
-
})}</p><br />
|
|
174
|
-
${
|
|
175
|
-
showCandles
|
|
176
|
-
? `<p><b>${labelCallback('candle')}:</b></p>
|
|
177
|
-
<p>${labelCallback('open_price')}: ${candleData[1]} </p>
|
|
178
|
-
<p>${labelCallback('close_price')}: ${candleData[2]} </p>
|
|
179
|
-
<p>${labelCallback('low')}: ${candleData[3]} </p>
|
|
180
|
-
<p>${labelCallback('high')}: ${candleData[4]} </p>
|
|
181
|
-
`
|
|
182
|
-
: ''
|
|
183
|
-
}
|
|
184
|
-
${
|
|
185
|
-
matchedBucket
|
|
186
|
-
? `<br /><p><b>${labelCallback(bookType === BookType.Order ? 'orders' : 'positions')}:</b></p>
|
|
187
|
-
<p>${labelCallback('price_range')}: ${matchedBucket.price.toFixed(
|
|
188
|
-
bucketDisplayPrecision
|
|
189
|
-
)} - ${Number(matchedBucket.price + bucketWidth).toFixed(
|
|
190
|
-
bucketDisplayPrecision
|
|
191
|
-
)} </p>
|
|
192
|
-
<p>${
|
|
193
|
-
matchedBucket.sentiment < 0
|
|
194
|
-
? labelCallback(
|
|
195
|
-
bookType === BookType.Order
|
|
196
|
-
? 'sell_overbalance'
|
|
197
|
-
: 'short_overbalance'
|
|
198
|
-
)
|
|
199
|
-
: labelCallback(
|
|
200
|
-
bookType === BookType.Order
|
|
201
|
-
? 'buy_overbalance'
|
|
202
|
-
: 'long_overbalance'
|
|
203
|
-
)
|
|
204
|
-
}: ${Math.abs(Number(matchedBucket.sentiment.toFixed(bucketDisplayPrecision)))}% </p>`
|
|
205
|
-
: ''
|
|
206
|
-
}${
|
|
207
|
-
showSentiment && sentimentParam
|
|
208
|
-
? `<br /><p><b>${labelCallback('sentiment')}:</b></p>
|
|
209
|
-
<p>${labelCallback('long')}: ${sentimentParam.value[2].toFixed(2)}% </p>
|
|
210
|
-
<p>${labelCallback('short')}: ${sentimentParam.value[1].toFixed(2)}% </p>`
|
|
211
|
-
: ''
|
|
212
|
-
}`;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
export const formatXAxisLabel = (
|
|
216
|
-
value: unknown,
|
|
217
|
-
isGreaterThanTwoWeeks: boolean
|
|
218
|
-
) => {
|
|
219
|
-
const date = new Date(value as string);
|
|
220
|
-
return isGreaterThanTwoWeeks
|
|
221
|
-
? `${date.toLocaleTimeString(undefined, {
|
|
222
|
-
hour: '2-digit',
|
|
223
|
-
minute: '2-digit',
|
|
224
|
-
})}`
|
|
225
|
-
: `${CHART_CONFIG.X_AXIS_DATE_PADDING}${date.toLocaleDateString(undefined, {
|
|
226
|
-
day: 'numeric',
|
|
227
|
-
})}${CHART_CONFIG.X_AXIS_DATE_PADDING}`;
|
|
228
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { getLineCommons } from '@oanda/labs-widget-common';
|
|
2
|
-
|
|
3
|
-
import { CHART_CONFIG } from '../../../constants';
|
|
4
|
-
|
|
5
|
-
export const getGridLines = ({
|
|
6
|
-
isDark,
|
|
7
|
-
isDesktop,
|
|
8
|
-
}: {
|
|
9
|
-
isDark: boolean;
|
|
10
|
-
isDesktop: boolean;
|
|
11
|
-
}) => {
|
|
12
|
-
const {
|
|
13
|
-
WIDTH,
|
|
14
|
-
MAIN_HEIGHT,
|
|
15
|
-
MARGIN_BETWEEN,
|
|
16
|
-
SENTIMENT_HEIGHT,
|
|
17
|
-
X_LABEL_SIZE,
|
|
18
|
-
Y_LABEL_SIZE_DESKTOP,
|
|
19
|
-
Y_LABEL_SIZE_MOBILE,
|
|
20
|
-
} = CHART_CONFIG;
|
|
21
|
-
return [
|
|
22
|
-
// Main Top
|
|
23
|
-
{
|
|
24
|
-
...getLineCommons(isDark),
|
|
25
|
-
top: -2,
|
|
26
|
-
shape: {
|
|
27
|
-
x1: 0,
|
|
28
|
-
y1: 0,
|
|
29
|
-
x2: WIDTH,
|
|
30
|
-
y2: 0,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
// Main Right
|
|
34
|
-
{
|
|
35
|
-
...getLineCommons(isDark),
|
|
36
|
-
right: -2,
|
|
37
|
-
shape: {
|
|
38
|
-
x1: 0,
|
|
39
|
-
y1: 0,
|
|
40
|
-
x2: 0,
|
|
41
|
-
y2: MAIN_HEIGHT + X_LABEL_SIZE + 2,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
// Main Bottom
|
|
45
|
-
{
|
|
46
|
-
...getLineCommons(isDark),
|
|
47
|
-
top: MAIN_HEIGHT - 2,
|
|
48
|
-
shape: {
|
|
49
|
-
x1: 0,
|
|
50
|
-
y1: 0,
|
|
51
|
-
x2: WIDTH,
|
|
52
|
-
y2: 0,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
// Main Left
|
|
56
|
-
{
|
|
57
|
-
...getLineCommons(isDark),
|
|
58
|
-
left: -2,
|
|
59
|
-
shape: {
|
|
60
|
-
x1: 0,
|
|
61
|
-
y1: 0,
|
|
62
|
-
x2: 0,
|
|
63
|
-
y2: MAIN_HEIGHT + X_LABEL_SIZE + 2,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
// Main Y Label
|
|
67
|
-
{
|
|
68
|
-
...getLineCommons(isDark),
|
|
69
|
-
right: (isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE) - 2,
|
|
70
|
-
top: -2,
|
|
71
|
-
shape: {
|
|
72
|
-
x1: 0,
|
|
73
|
-
y1: 0,
|
|
74
|
-
x2: 0,
|
|
75
|
-
y2: MAIN_HEIGHT,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
// Main X Label
|
|
79
|
-
{
|
|
80
|
-
...getLineCommons(isDark),
|
|
81
|
-
top: MAIN_HEIGHT + X_LABEL_SIZE,
|
|
82
|
-
shape: {
|
|
83
|
-
x1: 0,
|
|
84
|
-
y1: 0,
|
|
85
|
-
x2: WIDTH,
|
|
86
|
-
y2: 0,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
// Sentiment Top
|
|
90
|
-
{
|
|
91
|
-
...getLineCommons(isDark),
|
|
92
|
-
top: MAIN_HEIGHT + X_LABEL_SIZE + MARGIN_BETWEEN - 2,
|
|
93
|
-
shape: {
|
|
94
|
-
x1: 0,
|
|
95
|
-
y1: 0,
|
|
96
|
-
x2: WIDTH,
|
|
97
|
-
y2: 0,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
// Sentiment Right
|
|
101
|
-
{
|
|
102
|
-
...getLineCommons(isDark),
|
|
103
|
-
top: MAIN_HEIGHT + X_LABEL_SIZE + MARGIN_BETWEEN - 2,
|
|
104
|
-
right: -2,
|
|
105
|
-
shape: {
|
|
106
|
-
x1: 0,
|
|
107
|
-
y1: 0,
|
|
108
|
-
x2: 0,
|
|
109
|
-
y2: SENTIMENT_HEIGHT,
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
// Sentiment Bottom
|
|
113
|
-
{
|
|
114
|
-
...getLineCommons(isDark),
|
|
115
|
-
top: MAIN_HEIGHT + X_LABEL_SIZE + MARGIN_BETWEEN + SENTIMENT_HEIGHT - 3,
|
|
116
|
-
shape: {
|
|
117
|
-
x1: 0,
|
|
118
|
-
y1: 0,
|
|
119
|
-
x2: WIDTH,
|
|
120
|
-
y2: 0,
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
// Sentiment Left
|
|
124
|
-
{
|
|
125
|
-
...getLineCommons(isDark),
|
|
126
|
-
top: MAIN_HEIGHT + X_LABEL_SIZE + MARGIN_BETWEEN - 2,
|
|
127
|
-
left: -2,
|
|
128
|
-
shape: {
|
|
129
|
-
x1: 0,
|
|
130
|
-
y1: 0,
|
|
131
|
-
x2: 0,
|
|
132
|
-
y2: SENTIMENT_HEIGHT,
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
// Sentiment Y Label
|
|
136
|
-
{
|
|
137
|
-
...getLineCommons(isDark),
|
|
138
|
-
right: (isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE) - 3,
|
|
139
|
-
top: MAIN_HEIGHT + X_LABEL_SIZE + MARGIN_BETWEEN - 2,
|
|
140
|
-
shape: {
|
|
141
|
-
x1: 0,
|
|
142
|
-
y1: 0,
|
|
143
|
-
x2: 0,
|
|
144
|
-
y2: SENTIMENT_HEIGHT,
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
];
|
|
148
|
-
};
|
/package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/processOrderPositionBooks.js
RENAMED
|
File without changes
|
/package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.js
RENAMED
|
File without changes
|
/package/dist/main/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/module/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.js
RENAMED
|
File without changes
|
/package/dist/module/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/processPriceCandles.d.ts
RENAMED
|
File without changes
|
/package/dist/types/CrowdViewWidget/components/Chart/{utils → dataUtils}/processSentiments.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/CrowdViewWidget/components/Chart/{utils → dataUtils}/processOrderPositionBooks.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|