これが私が思いついたものです (これは、Google Charts API の上記の棒グラフ画像を使用しますが、グラフのラベルは使用しません):
<script type="text/javascript">
google.load("visualization", "1", {packages:["imagebarchart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
//Here we display a range from 10 million (10000000)
//to 20 million (20000000), using a dummy value set
//to 1 less than the low point of our range (in this
//case, 9999999) and with the same color as the
//chart's background. The dummy value will be stacked
//on top of the value we want to show and blank out
//the chart from 0 to where our range begins.
var data = google.visualization.arrayToDataTable([
['', ''],
[9999999, 20000000]
]);
var chart = new google.visualization.ImageBarChart(document.getElementById("chart_div"));
chart.draw(data, {showValueLabels: false, backgroundColor: '#f5f5f5', width: 1000, height: 70, min: 100000, max: 50000000, colors: ['#f5f5f5', '#008000']});
}
</script>
(は、ページの読み込み時にチャートに置き換えられる div です。このコードは、チャート ドキュメントchart_div
の例に基づいています。)
明らかに、この特定の棒グラフはこのように使用することを意図したものではありませんが、私が探していたものに最も近いものを見つけることができました. これが同じ問題を抱えている誰かに役立つことを願っています。