Skip to content

Instantly share code, notes, and snippets.

@mak-oh-1977
Created February 25, 2018 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mak-oh-1977/0a18e718ccb9cfd608d4101c96173ee8 to your computer and use it in GitHub Desktop.
Save mak-oh-1977/0a18e718ccb9cfd608d4101c96173ee8 to your computer and use it in GitHub Desktop.
<html>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(
function () {
var data = google.visualization.arrayToDataTable([
['アミノ酸', 'あなた'],
[ 10, 0.25],
]);
var options = {
title: '唾液の濃度',
hAxis: {title: 'アミノ酸', format:'##', minValue: 0, maxValue : 50},
vAxis: {title: '補正物質', minValue: 0, maxValue: 1}
};
var chart = new google.visualization.ScatterChart(document.getElementById('gct_sample_scatter'));
chart.draw(data, options);
}
);
</script>
<body>
<div id="gct_sample_scatter" style="width:80%; height:250pt" ></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment