2011-12-14 123 views
0

我在玩Sencha触摸图。我有他们的工作,与互动,动画一切都很好。我甚至设计了一堆。Sencha触摸图风格

但是,当我绕过造型的一系列类型区..它只是不会采取。

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; 
     } 
     } 
    } 
} 

太行系列的风格就好了,但面积并不:|任何想法?

回答