<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.1/tinycolor.min.js"></script>
<div>
<p>
In this example, we have a multilevel hierarchy with three levels:
<code>Country</code>, <code>State</code>, and <code>City</code>. Using the
<code>levelName</code> property, we can specify which hierarchy level is
shown on the grid or charts.
</p>
<p>
Click on the buttons below to change the <code>levelName</code> value from
<code>null</code> to <code>State</code> and back.
</p>
</div>
<button onclick="setLevel('State')">Specify level</button>
<button onclick="setLevel()">Reset level</button>
<div id="pivot-container"></div>