0

我在玩 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;
      }
      }
    }
 }

所以线条系列的样式很好,但面积不是:| 任何想法?

4

1 回答 1

0

我实际上并没有尝试过,但看起来你快到了......

基于http://docs.sencha.com/touch-charts/1-0/#!/guide/touch_charts_styling中的示例(在“轴”->“标签”)

我会尝试:

axis[position=bottom] {
      label {
          rotate: 0 0 45;
      }
  }
于 2011-12-14T16:54:06.690 回答