Skip to content

Commit 5922a12

Browse files
author
Niilo Keinänen
committed
v6.0.0
1 parent 9ffded6 commit 5922a12

File tree

4 files changed

+77
-80
lines changed

4 files changed

+77
-80
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Spider Series provides an ability to specify styles for both markers and lines i
3636

3737
```javascript
3838
const spiderSeries = spiderChart
39-
.addSeries(PointShape.Circle)
39+
.addSeries()
4040
.setName('Positive feedback distribution')
4141
.setFillStyle(fillStyle)
4242
.setPointFillStyle(pointFillStyle)
@@ -89,11 +89,11 @@ Direct developer email support can be purchased through a [Support Plan][4] or b
8989
© LightningChart Ltd 2009-2022. All rights reserved.
9090

9191

92-
[Color palettes]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/variables/ColorPalettes.html
93-
[Solid FillStyle]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/SolidFill.html
94-
[Empty LineStyle]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/variables/emptyLine.html
95-
[Spider chart]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/SpiderChart.html
96-
[Spider series]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/SpiderSeries.html
97-
[LegendBox]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/classes/Chart.html#addLegendBox
98-
[UI origin positions]: https://lightningchart.com/js-charts/api-documentation/v5.2.0/variables/UIOrigins.html
92+
[Color palettes]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/variables/ColorPalettes.html
93+
[Solid FillStyle]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/SolidFill.html
94+
[Empty LineStyle]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/variables/emptyLine.html
95+
[Spider chart]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/SpiderChart.html
96+
[Spider series]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/SpiderSeries.html
97+
[LegendBox]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/classes/Chart.html#addLegendBox
98+
[UI origin positions]: https://lightningchart.com/js-charts/api-documentation/v6.0.0/variables/UIOrigins.html
9999

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"webpack-stream": "^7.0.0"
1818
},
1919
"dependencies": {
20-
"@arction/xydata": "^1.4.0",
21-
"@arction/lcjs": "^5.2.0"
20+
"@lightningchart/lcjs": "^6.0.0",
21+
"@lightningchart/xydata": "^1.4.0"
2222
},
2323
"lightningChart": {
2424
"eID": "0400"

src/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* LightningChartJS example that showcases a simple SpiderChart.
33
*/
44
// Import LightningChartJS
5-
const lcjs = require('@arction/lcjs')
5+
const lcjs = require('@lightningchart/lcjs')
66

77
// Extract required parts from LightningChartJS.
88
const { lightningChart, LegendBoxBuilders, Themes } = lcjs
@@ -21,7 +21,7 @@ const chart = lightningChart({
2121

2222
const series = [chart.addSeries().setName('Sydney'), chart.addSeries().setName('Kuopio'), chart.addSeries().setName('New York')]
2323
series.forEach((value, i) => {
24-
value.setPointSize(10).setCursorResultTableFormatter((builder, series, value, axis) => builder.addRow(`${series.getName()} ${axis}`))
24+
value.setPointSize(10)
2525
})
2626

2727
// Add constant points to series.
@@ -61,6 +61,3 @@ const legend = chart
6161
})
6262
// Add SpiderChart to LegendBox
6363
legend.add(chart)
64-
65-
// Enable AutoCursor auto-fill.
66-
chart.setAutoCursor((cursor) => cursor.setResultTableAutoTextStyle(true))

webpack.config.js

+65-65
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
const HtmlWebpackPlugin = require("html-webpack-plugin");
2-
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
3-
const CopyWebpackPlugin = require("copy-webpack-plugin");
4-
const path = require("path");
5-
const webpack = require('webpack');
1+
const HtmlWebpackPlugin = require('html-webpack-plugin')
2+
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
3+
const CopyWebpackPlugin = require('copy-webpack-plugin')
4+
const path = require('path')
5+
const webpack = require('webpack')
66

7-
const targetFolderName = "dist";
8-
const outputPath = path.resolve(__dirname, targetFolderName);
9-
const packageJSON = require("./package.json");
7+
const targetFolderName = 'dist'
8+
const outputPath = path.resolve(__dirname, targetFolderName)
9+
const packageJSON = require('./package.json')
1010

1111
module.exports = {
12-
mode: "development",
13-
entry: {
14-
app: packageJSON.main,
15-
},
16-
devServer: {
17-
static: outputPath,
18-
compress: true,
19-
},
20-
resolve: {
21-
modules: [path.resolve("./src"), path.resolve("./node_modules")],
22-
extensions: [".js"],
23-
},
24-
output: {
25-
filename: "js/[name].[contenthash].bundle.js",
26-
chunkFilename: "js/[name].[contenthash].bundle.js",
27-
path: outputPath,
28-
},
29-
optimization: {
30-
splitChunks: {
31-
chunks: "all",
32-
cacheGroups: {
33-
// make separate 'vendor' chunk that contains any dependencies
34-
// allows for smaller file sizes and faster builds
35-
vendor: {
36-
test: /[\\/]node_modules[\\/]/,
37-
chunks: "initial",
38-
name: "vendor",
39-
priority: -10,
40-
reuseExistingChunk: true,
41-
},
42-
},
12+
mode: 'development',
13+
entry: {
14+
app: packageJSON.main,
4315
},
44-
runtimeChunk: "single",
45-
},
46-
plugins: [
47-
new CleanWebpackPlugin(),
48-
new HtmlWebpackPlugin({
49-
title: "app",
50-
filename: path.resolve(__dirname, "dist", "index.html"),
51-
}),
52-
new CopyWebpackPlugin({
53-
patterns: [
54-
{
55-
from: "./assets/**/*",
56-
to: `./examples/assets/${packageJSON.lightningChart.eID}/[name][ext]`,
57-
noErrorOnMissing: true,
58-
},
59-
{
60-
from: "./node_modules/@arction/lcjs/dist/resources",
61-
to: "resources",
62-
noErrorOnMissing: true,
16+
devServer: {
17+
static: outputPath,
18+
compress: true,
19+
},
20+
resolve: {
21+
modules: [path.resolve('./src'), path.resolve('./node_modules')],
22+
extensions: ['.js'],
23+
},
24+
output: {
25+
filename: 'js/[name].[contenthash].bundle.js',
26+
chunkFilename: 'js/[name].[contenthash].bundle.js',
27+
path: outputPath,
28+
},
29+
optimization: {
30+
splitChunks: {
31+
chunks: 'all',
32+
cacheGroups: {
33+
// make separate 'vendor' chunk that contains any dependencies
34+
// allows for smaller file sizes and faster builds
35+
vendor: {
36+
test: /[\\/]node_modules[\\/]/,
37+
chunks: 'initial',
38+
name: 'vendor',
39+
priority: -10,
40+
reuseExistingChunk: true,
41+
},
42+
},
6343
},
64-
],
65-
}),
66-
new webpack.DefinePlugin({
67-
LCJS_LICENSE: "'" + process.env.LCJS_LICENSE + "'",
68-
}),
69-
],
70-
};
44+
runtimeChunk: 'single',
45+
},
46+
plugins: [
47+
new CleanWebpackPlugin(),
48+
new HtmlWebpackPlugin({
49+
title: 'app',
50+
filename: path.resolve(__dirname, 'dist', 'index.html'),
51+
}),
52+
new CopyWebpackPlugin({
53+
patterns: [
54+
{
55+
from: './assets/**/*',
56+
to: `./examples/assets/${packageJSON.lightningChart.eID}/[name][ext]`,
57+
noErrorOnMissing: true,
58+
},
59+
{
60+
from: './node_modules/@lightningchart/lcjs/dist/resources',
61+
to: 'resources',
62+
noErrorOnMissing: true,
63+
},
64+
],
65+
}),
66+
new webpack.DefinePlugin({
67+
LCJS_LICENSE: "'" + process.env.LCJS_LICENSE + "'",
68+
}),
69+
],
70+
}

0 commit comments

Comments
 (0)