To insert multiple charts in one page, edit the CEWP code and insert more placeholders in the top of the code. The one in the example code is:
<div id="MyChart1"></div>.
If you want to have another chart below the first, add another container like this:
<div id="MyChart1"></div> <div id="MyChart2"></div>
You also need to add these IDs to the array arrOfChartContainers
in CEWP code like
this:
var arrOfChartContainers = ["MyChart1", "MyChart2"];
A placeholder can be any HTML element with an ID attribute, such
as <div>
, <span>
, or
<td>
.
You can put the placeholders in another CEWP on the page, but place the containers above the CEWP with the code to ensure they are loaded and available when the code runs.