
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
gridy-chart-echarts
Advanced tools
npm i gridy-grid echarts gridy-chart-echarts gridy-grid-default sk-theme-default
and plug it to your page
<script src="/node_modules/echarts/dist/echarts.js"></script>
then add element to your container or setup it programmatically
<gridy-grid id="gridyGrid" base-path="/node_modules/gridy-grid/src" sort-field="$.title">
<gridy-data-source fields='[{ "title": "Name", "path": "$.name" },{ "title": "Value", "path": "$.value"}]'
datasource-type="DataSourceLocal" datapath="$.data"></gridy-data-source>
<gridy-chart id="gridyChart2" legend='{"data": ["sales"]}' type="bar" dri="echarts" field-name="Name" field-value="Value" width="400" height="400"></gridy-chart>
</gridy-grid>
Multiple charts support
<gridy-grid id="gridyGrid2" base-path="/node_modules/gridy-grid/src" sort-field="$.title">
<gridy-data-source fields='[{ "title": "Name", "path": "$.name" },{ "title": "Value", "path": "$.value"},{ "title": "Group", "path": "$.group"}]'
datasource-type="DataSourceLocal" datapath="$.data"></gridy-data-source>
<gridy-chart id="gridyChart2" options='{"xAxis": { "data": "names" }, "yAxis": {}}' legend='{"data": ["sales", "markt"]}' type="multi:bar:sales,line:markt" value-field dri="echarts" field-color="Color" field-name="Name" field-value="Value" field-group="Group" width="400" height="400"></gridy-chart>
<gridy-pager id="gridyPager2"></gridy-pager>
</gridy-grid>
<script type="module">
import { GridyGrid } from '/node_modules/gridy-grid/src/gridy-grid.js';
let data = [];
data.push({ name: 'FooBar1', value: 100, group: 'sales' });
data.push({ name: 'FooBar1', value: 100, group: 'markt' });
data.push({ name: 'FooBar2', value: 230, group: 'sales' });
data.push({ name: 'FooBar2', value: 230, group: 'markt' });
data.push({ name: 'FooBar3', value: 340, group: 'sales' });
data.push({ name: 'FooBar3', value: 340, group: 'markt' });
data.push({ name: 'FooBar4', value: 170, group: 'sales' });
data.push({ name: 'FooBar4', value: 170, group: 'markt' });
data.push({ name: 'FooBar5', value: 570, group: 'sales' });
data.push({ name: 'FooBar5', value: 570, group: 'markt' });
let grid = document.querySelector('#gridyGrid');
grid.addEventListener('bootstrap', () => {
grid.charts[0].addEventListener('skrender', (event) => {
grid.dataSource.loadData(data);
});
});
customElements.define('gridy-grid', GridyGrid);
</script>
you can specify options for echarts as attribute of gridy-chart.
When xAxis or yAxis specified as string it will be populated from chart driver context by name. Note: some chart types may require at least empty x(y)Axis in options.
<gridy-chart id="gridyChart2" options='{"xAxis": { "data": "names" }, "yAxis": {}}' type="line" dri="echarts" field-name="Name" field-value="Value" field-group="Group" inner-radius="50" width="400" height="400"></gridy-chart>
JSONPath expressions on the same chart driver context are also supported for data fields.
echarts-renderer - renderer parameter for echarts init, possible options: 'svg', 'canvas' (default: 'canvas')
echarts-theme - theme parameter for echarts init (default: null)
value-field passes data extracted from specified field to option.series.data array, if not specified item is passed 'as-is' after mapping
FAQs
GridyGrid chart component ECharts driver
The npm package gridy-chart-echarts receives a total of 19 weekly downloads. As such, gridy-chart-echarts popularity was classified as not popular.
We found that gridy-chart-echarts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.