Comments (4)
Thank you for spelling it out for me.
from echarts.
You can specify start and end of the markline yourself as the various examples in the documentation suggest.
from echarts.
Using the example, the markLine disappears
In the original example:
I had two lines, one average line and another set at to a yAxis of 12. I suppose to use the items in the markLine array with item at 0 as start and 1 as end, I would need another markLine to render the line currently at yAxis: 12
However, it is puzzling why the line does not render at all when using the example code
Setting the yAxis to 12 creates 2 lines
from echarts.
You are missing one set of brackets.
In my example code
[
{yAxis: 'average', x: '10%', name: 'average'},
{yAxis: 'average', x: '90%'}
]
specifies a line between two points which have to be encapsulated into '[' brackets.
So the correct syntax is
data: [
[ // <-- brackets
{yAxis: 'average', x: '10%', name: 'average'},
{yAxis: 'average', x: '90%'}
] // <-- bracktes
]
instead of your
data: [
{yAxis: 'average', x: '10%', name: 'average'},
{yAxis: 'average', x: '90%'}
]
from echarts.
Related Issues (20)
- [Bug] 折线图显示错乱 HOT 7
- [Bug] axis.Interval has no effect for logarithmic charts
- 在ios手机上加载echartsk线图,手指在屏幕上移动时导致html整个页面都会被移动 HOT 1
- [Feature] Hyperlink/anchor support for pie charts HOT 4
- 自定义多个markPoint ,分别设置其z值,markPoint.label没有按照z值的大小来显示,z值只对图形标签(symbol)有用,对图形标签上的label不起作用 HOT 5
- [Bug] PieChart with dataset, onclick params not populated with dimensionNames array HOT 1
- [Feature] barGap can be applied to single series instead of all series
- Some issues about boxplots HOT 6
- 数据丢失 HOT 8
- [Bug] There is no label option under series->custom confuguration HOT 2
- [Bug] Inconsistent labels on time axis HOT 1
- PpictorialBar Series Label- rotate, When I rotate the Data label of bar series then same direction i wan to rotate the Pictorial Bar label icon HOT 3
- [Bug] : Inconsistent Zoom Functionality with ECharts HOT 2
- [Feature] Multiple labels in the same markArea
- [Feature] How to display values on a curve corresponding to the horizontal and vertical axes HOT 6
- [Bug] labelLayout设置坐标后,实例销毁然后重新生成,labal 富文本中的图片鼠标触发事件会失效 HOT 6
- [Bug] timeline how to set Radio type? HOT 2
- [Feature] Enhance kline functionality
- [Bug] xAxis sets category. When there are too many data points, thousands of data points will be displayed incompletely. (xAxis 设置 category,当数据点特别多时几千,前后数据展示不全)) HOT 13
- [Bug] x轴适配问题 HOT 3
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 echarts.