我在玩Sencha Touch Charts。我让他们工作,互动,动画一切都很好。我甚至称他们为一堆。
但是,当我绕过一系列类型区域的样式时......它不会采取。
new Ext.chart.Chart({
theme: 'MyTheme',
cls: 'myClass',
legend: { ... },
interactions: [{ ... }],
store: app.stores.MyStore,
axes: [...],
series: [{ type: 'area', axis: 'left', xField: 'Date', yField: 'someField' },
{ type: 'line', axis: 'right', xField: 'Date', yField: 'someField2' }
]
})
和风格
chart[cls=myClass] {
series {
&[type=area] {
fill: #FFA500;
}
&[type=line] {
stroke: #008000;
fill: #008000;
marker {
stroke: #008000;
fill: #008000;
}
}
}
}
所以线系列的样式很好,但区域不是:|有什么想法吗?
答案 0 :(得分:0)
我实际上没有尝试过,但看起来你几乎就在那里......
基于http://docs.sencha.com/touch-charts/1-0/#!/guide/touch_charts_styling上的示例(在"轴" - >"标签")
我试试:
axis[position=bottom] {
label {
rotate: 0 0 45;
}
}