Comments (9)
any ideas
@xieziyu
from ngx-echarts.
@krisklosterman Sorry for the late response, I think you need to ask echarts team about this question.
from ngx-echarts.
echarts team does not have an dataset attribute that is angular bound?
from ngx-echarts.
Just forget about dataset, you can directly set data in options just like the echarts official demo.
from ngx-echarts.
I am using [dataset] to bind an angular variable to the chart. I update that variable and it shows up in the chart.
<div echarts [options]="graphOptions" [dataset]="blxAPI.graph_stats" class="echart"></div>
in the code I update blxAPI.graph_stats as new data comes in with an array of
{ name: DateValueHere, value: [DateValueHere, FloatHere]}
the options variable I use
this.graphOptions = {
title: {
text: 'Graph Stats Chart Test'
},
legend: {
data:['Graph Stats']
},
"grid": {
"bottom": 80
},
"toolbox": {
feature: {
dataZoom: {
yAxisIndex: 'none'
}
}
},
"dataZoom": [
{
"show": true,
"realtime": true,
"start": 65,
"end": 100
}
],
xAxis: {
type : 'time',
},
yAxis: {
type : 'value'
},
series : [
{
name: 'Graph Stats',
type: 'line'
}
]
};
}
from ngx-echarts.
[dataset]
is actually putting your data into series
for you.
So try to not use dataset
and update your graphOptions
whenever blxAPI.graph_stats
changes just like below:
// call updateStats where you update blxAPI.graph_stats
updateStats() {
this.graphOptions = {
title: {
text: 'Graph Stats Chart Test'
},
legend: {
data: ['Graph Stats']
},
"grid": {
"bottom": 80
},
"toolbox": {
feature: {
dataZoom: {
yAxisIndex: 'none'
}
}
},
"dataZoom": [
{
"show": true,
"realtime": true,
"start": 65,
"end": 100
}
],
xAxis: {
type: 'time',
},
yAxis: {
type: 'value'
},
series: [
{
name: 'Graph Stats',
type: 'line',
// here is your data
data: blxAPI.graph_stats
}
]
};
}
If you still have the same issue, please ask echarts team for help.
from ngx-echarts.
ok thanks
from ngx-echarts.
I've copied static examples out of the echarts website and datazoom does not work.
If anyone actualy has datazoom working with NGX-ECHARTS, please let me know, but I think is broke or not functional.
from ngx-echarts.
well i used e.g.
dataZoom: [ { type: 'inside', start: 50, end: 100 }, { show: true, type: 'slider', y: '90%', start: 50, end: 100 } ],
on my data, and it worked
from ngx-echarts.
Related Issues (20)
- [loading] property binding is not working . HOT 9
- chart area mousemove HOT 1
- visualMap issues HOT 1
- display context menu only when right clicked on bar HOT 4
- Adding Events from `echarts-gl` into `ngx-echarts` HOT 2
- [HELP NEEDED] "Error: yAxis "0" not found" console error for mixed line and Bar graph. HOT 1
- Can't bind to 'options' since it isn't a known property of 'div'? HOT 3
- force directed graph demo broken HOT 5
- Feature: Function wrapper for the standalone ECharts provider configuration
- heatmap not working using ngx-echarts 16.0.0, but working fine when using echart 5.4.2 directly HOT 1
- [SOLVED] I've got custom theme.js and dunno how to import it into angular app HOT 3
- 实参类型 unknown 不可分配给形参类型 ECElementEvent HOT 1
- After updating from 16.0.0 to 16.1.0 I get compilation errors using angular HOT 9
- Width and Height 100% of parent container
- 'legendselectchanged' event has no Output HOT 3
- Make the directive standalone HOT 1
- echarts/core -> Implementation of registerMap doesn't exists HOT 3
- Ngx-Echarts Animation not working Initially HOT 3
- dispatchAction not updating chart if echart directive is used in ng-template
- Most of EChartsOption and connected fields ts types are not exported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-echarts.