Comments (3)
Thanks for your attention.
-
The right alignment can be set by
position: 1
(Which means at the end of the cross axis) andflip: true
(Which means labels at the right side of the axis line) in the axis specification. -
Multiple elements can be in the same chart. In your case, you need three in the
elements
list: aLineElement
for price, aAreaElement
with the same data ofLineElement
for gradient shadow, and anIntervalElement
for volume. You can set axis and scale for each of them. -
I have to say your feeling is right. It is not possible to set two sub-charts in a chart (called "facets" in visualization) or let two
different charts have a corresponding x axis now. That involves complex layout or data channel rules, which need a lot of work. They may be implemented in the future.
from graphic.
Ha awesome, thanks a lot for your prompt reply @entronad , 1 & 2 are very important to me and to a graph in general so very glad to know that this is actually already supported. I will try to create a PR and modify one example to demonstrate each.
As for 3, I don't really need it right now but for sure it would be very neat in the future but I get this is more complex. Facets (did not know that word was used in that context when it comes to visualization / graph) is definitely what I would be interested in.
This demo from ECharts has it, the declaration of the graph might give you some ideas or you actually might know how you want to expose it already but I am linking it just in case it is useful. They are basically declaring multiple X & Y axis and mapping elements (series in their language) to each. Of course I understand that most of the complexity comes from actually doing something useful with it 😄
https://echarts.apache.org/examples/en/editor.html?c=candlestick-brush
from graphic.
About corresponding of the price chart above and volume chart below, it has been possible in v0.9.0 by a method called Interaction Channel:
from graphic.
Related Issues (20)
- Take a look at my design!
- 对数坐标
- [BUG] Pinch zoom gesture causes an exception
- Error in TooltipRenderOp.render when a NaN value is selected
- Candlechart does not render circuit data points as it has same ohlc for that particular candle.
- Is it possible to Scroll only the barchart data and x axis without scrolling the y axis
- Add button to tooltip
- Mark transition and selections doesn't work well together.
- 如何实现Line Chart的实时变化 HOT 2
- Question: How to create this chart
- horizontalRangeUpdater 如何实现滚动到第一个坐标就截止,最后一个坐标也截止 HOT 1
- Is is possible to put a label to a graph axis? HOT 2
- Communicating with other widgets HOT 1
- Tool tip not working on iOS HOT 2
- 如何滑动到指定坐标点?
- 如何获取可视区域内的所有坐标点? HOT 1
- 如何给 X 轴的首尾添加箭头?
- Questions whether few things are possible
- marginMin、marginMax 设置为 0,会导致第一个和最后一个 Mark 的宽度只有一半
- Y轴的数值很长,会超出 Chart 显示区域范围
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 graphic.