You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/07/11 14:24:25 UTC
[GitHub] [echarts] Megrax commented on issue #15295: Bar drawing problem
Megrax commented on issue #15295:
URL: https://github.com/apache/echarts/issues/15295#issuecomment-877808832
try this:
```
option = {
title: {
text: 'rain',
left: 'center',
align: 'right'
},
tooltip: {
trigger: 'axis',
},
dataZoom: [
{
type: 'inside',
realtime: true,
start: 65,
end: 85
}
],
xAxis: [
{
type: 'category',
axisLine: {onZero: false},
data: [
'2009/6/12 2:00', '2009/6/12 3:00', '2009/6/12 4:00', '2009/6/12 5:00', '2009/6/12 6:00', '2009/6/12 7:00', '2009/6/12 8:00', '2009/6/12 9:00', '2009/6/12 10:00', '2009/6/12 11:00', '2009/6/12 12:00', '2009/6/12 13:00', '2009/6/12 14:00', '2009/6/12 15:00', '2009/6/12 16:00', '2009/6/12 17:00', '2009/6/12 18:00', '2009/6/12 19:00', '2009/6/12 20:00', '2009/6/12 21:00'
].map(function (str) {
return str.replace(' ', '\n');
})
}
],
yAxis: [
{
nameLocation: 'start',
type: 'value',
}
],
series: [
{
name: 'rain',
type: 'bar',
barCategoryGap: 0,
areaStyle: {},
lineStyle: {
width: 1
},
data: [
1.0,1.2,2.2,3.0,2.9,3.3,1.4,0.8,0.8,0.9,1.0,0.9,0.8,1.4,1.7,1.7,1.7,1.8,1.8,1.2
]
}
]
};
```
https://codesandbox.io/s/epic-benz-lde5s?file=/src/index.js
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org