Skip to content

Commit fa37d24

Browse files
author
Niilo Keinänen
committed
LCJS v7.0.1
1 parent eb928eb commit fa37d24

8 files changed

+9
-16
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Direct developer email support can be purchased through a [Support Plan][4] or b
8080
© LightningChart Ltd 2009-2022. All rights reserved.
8181

8282

83-
[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/classes/ChartXY.html
84-
[Line series]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/classes/LineSeries.html
85-
[Numeric Axis tick strategy]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/variables/AxisTickStrategies.html
86-
[Data patterns]: https://lightningchart.com/js-charts/api-documentation/v6.1.0/interfaces/DataPattern.html
83+
[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/ChartXY.html
84+
[Line series]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/LineSeries.html
85+
[Numeric Axis tick strategy]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/AxisTickStrategies.html
86+
[Data patterns]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/interfaces/DataPattern.html
8787

29.6 KB
Loading
11.4 KB
Loading

lineSeriesMicroseconds-light.png

10 KB
Loading
7.05 KB
Loading
35.2 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"webpack-stream": "^7.0.0"
1818
},
1919
"dependencies": {
20-
"@lightningchart/lcjs": "^6.1.1",
20+
"@lightningchart/lcjs": "^6.1.2",
2121
"@lightningchart/xydata": "^1.4.0"
2222
},
2323
"lightningChart": {

src/index.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const lcjs = require('@lightningchart/lcjs')
66

77
// Extract required parts from LightningChartJS.
8-
const { lightningChart, AxisTickStrategies, Themes } = lcjs
8+
const { lightningChart, AxisTickStrategies, emptyFill, Themes } = lcjs
99

1010
// Create a XY Chart.
1111
const chart = lightningChart({
@@ -14,21 +14,14 @@ const chart = lightningChart({
1414
.ChartXY({
1515
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
1616
})
17-
.setPadding({
18-
right: 50,
19-
})
2017
.setTitle('High resolution voltage measurement')
2118

2219
// Create line series optimized for regular progressive X data.
2320
const lineSeries = chart
24-
.addLineSeries({
25-
dataPattern: {
26-
// pattern: 'ProgressiveX' => Each consecutive data point has increased X coordinate.
27-
pattern: 'ProgressiveX',
28-
// regularProgressiveStep: true => The X step between each consecutive data point is regular (for example, always `1.0`).
29-
regularProgressiveStep: true,
30-
},
21+
.addPointLineAreaSeries({
22+
dataPattern: 'ProgressiveX',
3123
})
24+
.setAreaFillStyle(emptyFill)
3225
.setName('Voltage')
3326

3427
// Axes can't properly scroll data with microseconds precision - define a factor to scale all X values with.

0 commit comments

Comments
 (0)