Hiya!
I'm working on converting an HTML document (AmCharts Pie) to all JavaScript for work, and I ran into a bit of a bump. (NOTE: I'm not a Javascript programmer)
Okie - my question is this: Is there a JavaScript equivalent to the HTML Div tag? Here's a piece of the code:
<head>
<script src="../amcharts.js" type="text/javascript"></script>
</head>
<body>
AmCharts.ready(function() {
......
chart.write("chartdiv");
});
<div id="chartdiv" style="width: 100%; height: 400px;"></div>
</body>
What I'm trying to convert it to doesn't except HTML files, only JS, so if I can't convert it, looks like I'll be looking for a new pie chart :)
Thanks in advance!
Cassie :)