Sencha-touch-chart-draw
提供:Dev Guides
Sencha Touch-描画
説明
これは、円形や長方形などのさまざまなタイプの単純なチャートを作成するために使用されます。
構文
以下は、フォームを追加する簡単な構文です。
例
以下は、使用法を示す簡単な例です。
これにより、次の結果が生成されます–
これは、円形や長方形などのさまざまなタイプの単純なチャートを作成するために使用されます。
以下は、フォームを追加する簡単な構文です。
Ext.create("Ext.draw.Component", {})
以下は、使用法を示す簡単な例です。
<!DOCTYPE html>
<html>
<head>
<link href = "https://cdn.sencha.com/touch/sencha-touch-2.4.2/resources/css/sencha-touch.css" rel = "stylesheet"/>
<script type = "text/javascript" src = "https://cdn.sencha.com/touch/sencha-touch-2.4.2/sencha-touch-all.js">
</script>
<script type = "text/javascript">
Ext.application({
name: 'Sencha',
launch: function() {
Ext.create("Ext.draw.Component", {
fullscreen: true,
sprites: [
{
type: 'circle',
fillStyle: '#ff8',
strokeStyle: 'black',
lineWidth: 3,
radius: 100,
x: 100,
y: 100
}
]
});
}
});
</script>
</head>
<body>
</body>
</html>
これにより、次の結果が生成されます–