scichart 3.0.269 → 3.0.284
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/Builder/chartBuilder.d.ts +7 -7
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -3
- package/Charting/ChartModifiers/CursorModifier.d.ts +27 -12
- package/Charting/ChartModifiers/CursorModifier.js +87 -12
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +15 -12
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +15 -12
- package/Charting/ChartModifiers/constants.d.ts +4 -1
- package/Charting/ChartModifiers/constants.js +3 -0
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.d.ts +1 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.d.ts +1 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +14 -4
- package/Charting/LayoutManager/LayoutManager.js +133 -35
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -3
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +13 -9
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +7 -7
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/BoxAnnotation.js +21 -21
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/LineAnnotation.js +4 -4
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +21 -21
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +1 -6
- package/Charting/Visuals/Axis/AxisBase2D.js +13 -19
- package/Charting/Visuals/Axis/AxisCore.js +4 -1
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +2 -2
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +1 -1
- package/Charting/Visuals/PointMarkers/SpritePointMarker.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +14 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/SciChartSurface.d.ts +8 -3
- package/Charting/Visuals/SciChartSurface.js +10 -4
- package/Charting/Visuals/licenseManager2D.js +4 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Telemetry.js +4 -1
- package/README.md +61 -13
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +16 -16
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +16 -16
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +958 -0
- package/index.js +1298 -2
- package/index.min.js +1 -0
- package/package.json +1 -1
- package/types/AxisAlignment.d.ts +1 -0
- package/types/AxisAlignment.js +5 -1
- package/utils/array.d.ts +9 -0
- package/utils/array.js +19 -1
package/README.md
CHANGED
|
@@ -133,26 +133,44 @@ initSciChart();
|
|
|
133
133
|
>
|
|
134
134
|
> - See the [Getting Started Page](https://scichart.com/getting-started/scichart-javascript/) as well as our [Tutorials](https://www.scichart.com/documentation/js/current/webframe.html#Tutorial%2001%20-%20Setting%20up%20a%20Project%20with%20SciChart.js.html) for more information on creating your first chart
|
|
135
135
|
|
|
136
|
-
## Quick Start with
|
|
136
|
+
## Quick Start with Browser Bundle (Iife bundle)
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
[](https://www.jsdelivr.com/package/npm/scichart)
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
If your environment does not include a bundler like Parcel or Webpack, you can still load SciChart.js using the browser bundle module from [JSDlvr](https://www.jsdelivr.com/package/npm/scichart)
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
1. **Include SciChart.browser.js in your webpage**
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<!-- Always include latest scichart.js version -->
|
|
146
|
+
<script src="https://cdn.jsdelivr.net/npm/scichart/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
|
|
147
|
+
<!-- or, choose specific version -->
|
|
148
|
+
<script src="https://cdn.jsdelivr.net/npm/scichart@3.0.280/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
|
|
149
|
+
<!-- or, choosing latest version from 3.x -->
|
|
150
|
+
<script src="https://cdn.jsdelivr.net/npm/scichart@3/_wasm/scichart.browser.js" crossorigin="anonymous"></script>
|
|
151
|
+
```
|
|
147
152
|
|
|
148
|
-
|
|
149
|
-
SciChart, SciChartSurface.setRuntimeLicenseKey("--YOUR_KEY_HERE--");
|
|
153
|
+
2.**Create scichart-example.js file with a simple chart**
|
|
150
154
|
|
|
155
|
+
```javascript
|
|
156
|
+
// Imports when using Browser Bundle
|
|
157
|
+
const {
|
|
158
|
+
SciChartSurface,
|
|
159
|
+
SciChartDefaults,
|
|
160
|
+
chartBuilder,
|
|
161
|
+
SciChartJsNavyTheme,
|
|
162
|
+
XyDataSeries,
|
|
163
|
+
FastLineRenderableSeries,
|
|
164
|
+
NumericAxis
|
|
165
|
+
} = SciChart;
|
|
166
|
+
|
|
167
|
+
// Option 1: Create chart with Builder API
|
|
168
|
+
async function initSciChartBuilderApi() {
|
|
151
169
|
// Create a chart using the json builder api
|
|
152
|
-
await
|
|
170
|
+
await chartBuilder.buildChart("chart0", {
|
|
153
171
|
series: {
|
|
154
172
|
type: "LineSeries",
|
|
155
|
-
options: { stroke: "steelblue" },
|
|
173
|
+
options: { stroke: "steelblue", strokeThickness: 5 },
|
|
156
174
|
xyData: {
|
|
157
175
|
xValues: [1, 2, 5, 8, 10],
|
|
158
176
|
yValues: [3, 1, 7, 5, 8]
|
|
@@ -161,9 +179,39 @@ async function initSciChart() {
|
|
|
161
179
|
});
|
|
162
180
|
}
|
|
163
181
|
|
|
164
|
-
|
|
182
|
+
// Option 2: Create chart with the programmatic API
|
|
183
|
+
async function initSciChartProgrammaticApi() {
|
|
184
|
+
const { sciChartSurface, wasmContext } = await SciChartSurface.create("chart1", {
|
|
185
|
+
theme: new SciChartJsNavyTheme()
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
sciChartSurface.xAxes.add(new NumericAxis(wasmContext));
|
|
189
|
+
sciChartSurface.yAxes.add(new NumericAxis(wasmContext));
|
|
190
|
+
|
|
191
|
+
sciChartSurface.renderableSeries.add(
|
|
192
|
+
new FastLineRenderableSeries(wasmContext, {
|
|
193
|
+
stroke: "#FF6600",
|
|
194
|
+
strokeThickness: 3,
|
|
195
|
+
dataSeries: new XyDataSeries(wasmContext, {
|
|
196
|
+
xValues: [1, 2, 5, 8, 10],
|
|
197
|
+
yValues: [3, 1, 7, 5, 8]
|
|
198
|
+
})
|
|
199
|
+
})
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// See deployment options for WebAssembly at https://www.scichart.com/documentation/js/current/Deploying%20Wasm%20or%20WebAssembly%20and%20Data%20Files%20with%20your%20app.html
|
|
204
|
+
// call useWasmFromCDN once before SciChart.js is initialised to load Wasm files from our CDN
|
|
205
|
+
SciChartSurface.useWasmFromCDN();
|
|
206
|
+
// Also, call & set runtime license key here once before scichart shown
|
|
207
|
+
SciChartSurface.setRuntimeLicenseKey("-- Your license key here --");
|
|
208
|
+
|
|
209
|
+
initSciChartBuilderApi();
|
|
210
|
+
initSciChartProgrammaticApi();
|
|
165
211
|
```
|
|
166
212
|
|
|
213
|
+
> [View above in CodePen](https://codepen.io/scichart/pen/ZEjjELy)
|
|
214
|
+
|
|
167
215
|
> See the full [browser bundle tutorial here](https://www.scichart.com/documentation/js/current/webframe.html#Tutorial%2001%20-%20Including%20SciChart.js%20in%20an%20HTML%20Page.html)
|
|
168
216
|
|
|
169
217
|
# Release notes. What's New!
|