製品版のみの機能
ブレット グラフ - 概要
igBulletGraph は HTML5 キャンバス ベース ブレット グラフ コントロールです。単一のプライマリ メジャーを表示し、1 つ以上のその他のメジャーと比較し、簡潔なデータ ビジュアライゼーションを作成します。
igBulletGraph は、複数の構成をサポートし、アニメーションおよび ツールチップ 機能を提供します。サンプルをすべて表示するには、メニューを参照してください。
このサンプルは CTP 機能を使用しています。製品版では、API や動作が変更される場合があります。
Sunkost: 2013 年の売上げ目標
年度売上
利益
平均注文
新しい顧客
2013 年度の販売 (水平の白線) は、2012 年全体 (中範囲の開始) の販売を超えました。2013 年度の販売において、新しく導入した販売活動が成功したことを示しています。更に市場浸透が増加し、販売も向上しました。
このサンプルは、より大きい画面サイズのためにデザインされました。
モバイル デバイスで画面を回転、フル サイズ表示、またはその他のデバイスにメールで送信します。
このサンプルでは、igBulletGraph コントロールのパフォーマンス (実際値) バー、比較目盛 (ターゲット値) マーカー、およびスケールのサイズを構成する方法を紹介します。
コード ビュー
クリップボードへコピー
var $bulletGraph = $("#bulletgraph");
$bulletGraph.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush:'#803E01',
name: 'bad',
startValue: 0,
endValue: 5000
},
{
brush: '#BA5A05',
name: 'acceptable',
startValue: 5000,
endValue: 6000
},
{
brush: '#FF7A04',
name: 'good',
startValue: 6000,
endValue: 10000
}
],
minimumValue: 0,
maximumValue: 10000,
value: 6500,
valueInnerExtent: 0.5,
valueOuterExtent: 0.65,
targetValue: 7000,
formatLabel: function (evt, ui) {
ui.label += "K";
}
});
var $bulletGraph2 = $("#bulletgraph2");
$bulletGraph2.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush: '#566509',
name: 'bad',
startValue: 0,
endValue: 3000
},
{
brush: '#7F950C',
name: 'acceptable',
startValue: 3000,
endValue: 4000
},
{
brush: '#AABF31',
name: 'good',
startValue: 4000,
endValue: 10000
}
],
minimumValue: 0,
maximumValue: 10000,
value: 5000,
valueInnerExtent: 0.5,
valueOuterExtent: 0.65,
targetValue: 6000,
targetValueBreadth: 12,
formatLabel: function (evt, ui) {
ui.label += "K";
}
});
var $bulletGraph3 = $("#bulletgraph3");
$bulletGraph3.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush: '#566509',
name: 'bad',
startValue: 0,
endValue: 250
},
{
brush: '#7F950C',
name: 'acceptable',
startValue: 250,
endValue: 300
},
{
brush: '#AABF31',
name: 'good',
startValue: 300,
endValue: 500
}
],
minimumValue: 0,
maximumValue: 500,
value: 350,
valueInnerExtent: 0.35,
valueOuterExtent: 0.8,
targetValue: 400,
formatLabel: function (evt, ui) {
ui.label += "K";
}
});
var $bulletGraph4 = $("#bulletgraph4");
$bulletGraph4.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush: '#11364D',
name: 'bad',
startValue: 0,
endValue: 50
},
{
brush: '#164F6D',
name: 'acceptable',
startValue: 50,
endValue: 70
},
{
brush: '#20789F',
name: 'good',
startValue: 70,
endValue: 100
}
],
maximumValue: 100,
value: 55,
targetValue: 73,
valueBrush:"#B3E0F7",
targetValueBrush:"#B3E0F7",
targetValueOutline:"#B3E0F7",
formatLabel: function (evt, ui) {
ui.label = ui.value + "%";
}
});
<div style="min-height:50px">
<h3>Sunkost: 2013 年の売上げ目標</h3>
</div>
<br />
<div>
<div style="width:30%">
年度売上
</div>
<div style="width:70%" id="bulletgraph">
</div>
</div>
<br />
<div>
<div style="width:30%">
利益
</div>
<div style="width:70%" id="bulletgraph2">
</div>
</div>
<br />
<div>
<div style="width:30%">
平均注文
</div>
<div style="width:70%" id="bulletgraph3">
</div>
</div>
<br />
<div>
<div style="width:30%">
新しい顧客
</div>
<div style="width:70%" id="bulletgraph4">
</div>
</div>
<br />
2013 年度の販売 (水平の白線) は、2012 年全体 (中範囲の開始) の販売を超えました。2013 年度の販売において、新しく導入した販売活動が成功したことを示しています。更に市場浸透が増加し、販売も向上しました。
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Ignite UI for jQuery Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/structure/infragistics.css" rel="stylesheet" />
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI for jQuery Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.dv.js"></script>
</head>
<body>
<div style="min-height:50px" >
<h3>Sunkost: 2013 年の売上げ目標</h3>
</div>
<br />
<div >
<div style="width:30%" >
年度売上
</div>
<div style="width:70%" id="bulletgraph">
</div>
</div>
<br />
<div>
<div style="width:30%">
利益
</div>
<div style="width:70%" id="bulletgraph2">
</div>
</div>
<br />
<div >
<div style="width:30%">
平均注文
</div>
<div style="width:70%" id="bulletgraph3">
</div>
</div>
<br />
<div>
<div style="width:30%" >
新しい顧客
</div>
<div style="width:70%" id="bulletgraph4">
</div>
</div>
<br />
2013 年度の販売 (水平の白線) は、2012 年全体 (中範囲の開始) の販売を超えました。2013 年度の販売において、新しく導入した販売活動が成功したことを示しています。更に市場浸透が増加し、販売も向上しました。
<script type="text/javascript">
$(function () {
var $bulletGraph = $("#bulletgraph");
$bulletGraph.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush:'#803E01',
name: 'bad',
startValue: 0,
endValue: 5000
},
{
brush: '#BA5A05',
name: 'acceptable',
startValue: 5000,
endValue: 6000
},
{
brush: '#FF7A04',
name: 'good',
startValue: 6000,
endValue: 10000
}
],
minimumValue: 0,
maximumValue: 10000,
value: 6500,
valueInnerExtent: 0.5,
valueOuterExtent: 0.65,
targetValue: 7000,
formatLabel: function (evt, ui) {
ui.label += "K";
}
});
var $bulletGraph2 = $("#bulletgraph2");
$bulletGraph2.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush: '#566509',
name: 'bad',
startValue: 0,
endValue: 3000
},
{
brush: '#7F950C',
name: 'acceptable',
startValue: 3000,
endValue: 4000
},
{
brush: '#AABF31',
name: 'good',
startValue: 4000,
endValue: 10000
}
],
minimumValue: 0,
maximumValue: 10000,
value: 5000,
valueInnerExtent: 0.5,
valueOuterExtent: 0.65,
targetValue: 6000,
targetValueBreadth: 12,
formatLabel: function (evt, ui) {
ui.label += "K";
}
});
var $bulletGraph3 = $("#bulletgraph3");
$bulletGraph3.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush: '#566509',
name: 'bad',
startValue: 0,
endValue: 250
},
{
brush: '#7F950C',
name: 'acceptable',
startValue: 250,
endValue: 300
},
{
brush: '#AABF31',
name: 'good',
startValue: 300,
endValue: 500
}
],
minimumValue: 0,
maximumValue: 500,
value: 350,
valueInnerExtent: 0.35,
valueOuterExtent: 0.8,
targetValue: 400,
formatLabel: function (evt, ui) {
ui.label += "K";
}
});
var $bulletGraph4 = $("#bulletgraph4");
$bulletGraph4.igBulletGraph({
width: "100%",
height: "80px",
ranges: [
{
brush: '#11364D',
name: 'bad',
startValue: 0,
endValue: 50
},
{
brush: '#164F6D',
name: 'acceptable',
startValue: 50,
endValue: 70
},
{
brush: '#20789F',
name: 'good',
startValue: 70,
endValue: 100
}
],
maximumValue: 100,
value: 55,
targetValue: 73,
valueBrush:"#B3E0F7",
targetValueBrush:"#B3E0F7",
targetValueOutline:"#B3E0F7",
formatLabel: function (evt, ui) {
ui.label = ui.value + "%";
}
});
});
</script>
</body>
</html>