TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mas
NA
478
70.4k
How we can pass the below values through JSON to this script
Jan 22 2020 9:11 AM
<!DOCTYPE html>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title>ChartJS - Pie Chart</title>
<script src=
"jquery-2.1.4.min.js"
></script>
<script src=
"Chart.js"
></script>
</head>
<body>
<canvas id=
"mycanvas"
width=
"256"
height=
"256"
/>
<script>
$(document).ready(
function
(){
var
ctx = $(
"#mycanvas"
).get(0).getContext(
"2d"
);
var
data = [
{
value: 150,
color:
"cornflowerblue"
,
//highlight: "lightskyblue",
label:
"Bigdata"
},
{
value: 100,
color:
"lightgreen"
,
//highlight: "yellowgreen",
label:
"Mechin Learning"
},
{
value: 40,
color:
"orange"
,
//highlight: "darkorange",
label:
"Java"
},
{
value: 70,
color:
"lightgray"
,
//highlight: "yellowgreen",
label:
"C#"
}
];
//draw
var
piechart =
new
Chart(ctx).Pie(data);
});
</script>
</body>
</html>
Reply
Answers (
2
)
HTML Table Printing all column Problem
How to hide the tooltips