<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
link
rel
=
"stylesheet"
href
=
"jqwidgets/styles/jqx.base.css"
type
=
"text/css"
/>
<
link
rel
=
"stylesheet"
href
=
"jqwidgets/styles/jqx.energyblue.css"
type
=
"text/css"
/>
<
script
type
=
"text/javascript"
src
=
"scripts/jquery.js"
>
</
script
>
<
script
type
=
"text/javascript"
src
=
"jqwidgets/jqxcore.js"
>
</
script
>
<
script
type
=
"text/javascript"
src
=
"jqwidgets/jqxtooltip.js"
>
</
script
>
<
script
type
=
"text/javascript"
src
=
"jqwidgets/jqxtreemap.js"
>
</
script
>
<
script
type
=
"text/javascript"
src
=
"scripts/gettheme.js"
>
</
script
>
<
script
type
=
"text/javascript"
src
=
"scripts/jqx-all.js"
>
</
script
>
</
head
>
<
body
>
<
center
>
<
h1
style
=
"color: green;"
>
GeeksforGeeks
</
h1
>
<
h3
>
jQWidgets jqxTreeMap theme Property
</
h3
>
<
div
id
=
"Tree_Map"
></
div
>
<
input
type
=
"button"
style
=
"margin: 28px;"
id
=
"button_for_theme"
value
=
"Value of the theme property"
/>
<
div
id
=
"log"
></
div
>
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
var Data_of_TreeMap = [{
label: 'GeeksforGeeks',
value: 70,
color: '#ff0300'
}, {
label: 'is a',
value: 10,
parent: 'GeeksforGeeks',
color: '#ff5400'
}, {
label: 'Computer Science',
value: 30,
parent: 'GeeksforGeeks',
color: '#008000'
}, {
label: 'Portal.',
value: 15,
parent: 'GeeksforGeeks',
color: '#7fbf00'
}
];
$('#Tree_Map').jqxTreeMap({
width: 390,
height: 200,
source: Data_of_TreeMap,
theme: 'energyblue'
});
$("#button_for_theme").
jqxButton({
width: 300,
theme: 'energyblue'
});
$("#button_for_theme").click(
function () {
var theme_Value =
$('#Tree_Map').
jqxTreeMap('theme');
$("#log").html((
theme_Value));
});
});
</
script
>
</
center
>
</
body
>
</
html
>