@genesislcap/g2plot-chart 14.481.1-alpha-69af5f8.0 → 14.481.2-alpha-829ad82.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../../src/models/bar-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,eAAO,MAAM,QAAQ,GAAI,WAAW,WAAW,EAAE,QAAQ,UAAU,
|
|
1
|
+
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../../src/models/bar-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,eAAO,MAAM,QAAQ,GAAI,WAAW,WAAW,EAAE,QAAQ,UAAU,QAQlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mix-chart.d.ts","sourceRoot":"","sources":["../../../src/models/mix-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,eAAO,MAAM,QAAQ,GAAI,WAAW,WAAW,EAAE,QAAQ,UAAU,
|
|
1
|
+
{"version":3,"file":"mix-chart.d.ts","sourceRoot":"","sources":["../../../src/models/mix-chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,eAAO,MAAM,QAAQ,GAAI,WAAW,WAAW,EAAE,QAAQ,UAAU,QA8BlE,CAAC"}
|
|
@@ -2,7 +2,9 @@ import { Bar } from '@antv/g2plot';
|
|
|
2
2
|
import { chartsGradients } from '../settings';
|
|
3
3
|
export const BarChart = (container, config) => {
|
|
4
4
|
const configuration = config;
|
|
5
|
-
configuration.color || (configuration.color =
|
|
5
|
+
configuration.color || (configuration.color = configuration.seriesField
|
|
6
|
+
? Object.values(chartsGradients)
|
|
7
|
+
: chartsGradients.rapidBlue);
|
|
6
8
|
configuration.shape = 'rapid-shape';
|
|
7
9
|
return new Bar(container, configuration);
|
|
8
10
|
};
|
|
@@ -19,7 +19,9 @@ export const MixChart = (container, config) => {
|
|
|
19
19
|
plot.options.shape = 'rapid-shape';
|
|
20
20
|
}
|
|
21
21
|
if (plot.type == 'bar') {
|
|
22
|
-
(_c = plot.options).color || (_c.color =
|
|
22
|
+
(_c = plot.options).color || (_c.color = plot.options.seriesField
|
|
23
|
+
? Object.values(chartsGradients)
|
|
24
|
+
: chartsGradients.rapidBlue);
|
|
23
25
|
plot.options.shape = 'rapid-shape';
|
|
24
26
|
}
|
|
25
27
|
if (plot.type == 'line') {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/g2plot-chart",
|
|
3
3
|
"description": "Genesis G2plot Chart",
|
|
4
|
-
"version": "14.481.
|
|
4
|
+
"version": "14.481.2-alpha-829ad82.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@genesislcap/foundation-testing": "14.481.
|
|
57
|
-
"@genesislcap/genx": "14.481.
|
|
58
|
-
"@genesislcap/rollup-builder": "14.481.
|
|
59
|
-
"@genesislcap/ts-builder": "14.481.
|
|
60
|
-
"@genesislcap/uvu-playwright-builder": "14.481.
|
|
61
|
-
"@genesislcap/vite-builder": "14.481.
|
|
62
|
-
"@genesislcap/webpack-builder": "14.481.
|
|
56
|
+
"@genesislcap/foundation-testing": "14.481.2-alpha-829ad82.0",
|
|
57
|
+
"@genesislcap/genx": "14.481.2-alpha-829ad82.0",
|
|
58
|
+
"@genesislcap/rollup-builder": "14.481.2-alpha-829ad82.0",
|
|
59
|
+
"@genesislcap/ts-builder": "14.481.2-alpha-829ad82.0",
|
|
60
|
+
"@genesislcap/uvu-playwright-builder": "14.481.2-alpha-829ad82.0",
|
|
61
|
+
"@genesislcap/vite-builder": "14.481.2-alpha-829ad82.0",
|
|
62
|
+
"@genesislcap/webpack-builder": "14.481.2-alpha-829ad82.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@antv/g2plot": "^2.4.32",
|
|
66
|
-
"@genesislcap/foundation-comms": "14.481.
|
|
67
|
-
"@genesislcap/foundation-logger": "14.481.
|
|
68
|
-
"@genesislcap/foundation-ui": "14.481.
|
|
69
|
-
"@genesislcap/foundation-utils": "14.481.
|
|
70
|
-
"@genesislcap/foundation-zero": "14.481.
|
|
66
|
+
"@genesislcap/foundation-comms": "14.481.2-alpha-829ad82.0",
|
|
67
|
+
"@genesislcap/foundation-logger": "14.481.2-alpha-829ad82.0",
|
|
68
|
+
"@genesislcap/foundation-ui": "14.481.2-alpha-829ad82.0",
|
|
69
|
+
"@genesislcap/foundation-utils": "14.481.2-alpha-829ad82.0",
|
|
70
|
+
"@genesislcap/foundation-zero": "14.481.2-alpha-829ad82.0",
|
|
71
71
|
"@microsoft/fast-element": "1.14.0",
|
|
72
72
|
"@microsoft/fast-foundation": "2.50.0"
|
|
73
73
|
},
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"require": "./dist/react.cjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "074779b7bd0998af5157821fa5739ecce0ac36a8"
|
|
95
95
|
}
|