【问题标题】:Sencha Touch Charts styleSencha Touch Charts 风格
【发布时间】:2011-12-14 16:31:17
【问题描述】:

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

所以线条系列的样式很好,但区域不是:|有什么想法吗?

【问题讨论】:

    标签: sencha-touch extjs sencha-touch-theming


    【解决方案1】:

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

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

    我会尝试:

    axis[position=bottom] {
          label {
              rotate: 0 0 45;
          }
      }
    

    【讨论】:

    • 我的问题是 --- &[type=area] {fill: #FFA500;} --- 旋转效果很好!
    猜你喜欢
    • 1970-01-01
    • 2014-02-06
    • 2012-01-08
    • 1970-01-01
    • 1970-01-01
    • 2011-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多