ChartAct / web /AnyChart /heatmap /chart_0026_heatmap.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
2.75 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>BCT Heat Map Chart 04</title>
<link href="https://playground.anychart.com/docs/samples/BCT_Heat_Map_Chart_04/iframe" rel="canonical">
<meta content="HeatMap Chart,Tooltip" name="keywords">
<meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css" rel="stylesheet" type="text/css">
<style>html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}</style>
</head>
<body>
<div id="container"></div>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-heatmap.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js"></script>
<script type="text/javascript">anychart.onDocumentReady(function () {
// create data
var data = [
{x: "1", y: "A", fill: "#ffcc00"},
{x: "1", y: "B", fill: "#ffcc00"},
{x: "1", y: "C", fill: "#ff9933"},
{x: "1", y: "D", fill: "#ff9933"},
{x: "2", y: "A", fill: "#ffcc00"},
{x: "2", y: "B", fill: "#ff9933"},
{x: "2", y: "C", fill: "#ff9933"},
{x: "2", y: "D", fill: "#ff9933"},
{x: "3", y: "A", fill: "#ff9933"},
{x: "3", y: "B", fill: "#ff9933"},
{x: "3", y: "C", fill: "#ff6600"},
{x: "3", y: "D", fill: "#ff6600"},
{x: "4", y: "A", fill: "#ff9933"},
{x: "4", y: "B", fill: "#ff9933"},
{x: "4", y: "C", fill: "#ff6600"},
{x: "4", y: "D",
normal: {
fill: "#ff0000",
stroke: "4 #b30059"
},
hovered: {
fill: "#ff0000",
stroke: "5 white"
},
selected: {
fill: "#b30059",
stroke: "5 white"
}
}
];
// create a chart and set the data
var chart = anychart.heatMap(data);
// disable tooltips
chart.tooltip(false);
// set the chart title
chart.title("Heat Map: Appearance (Individual Points)");
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();
});</script>
</body>
</html>