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.5k
How to hide value on pie chart
Jan 21 2020 6:02 PM
Hello Members,
Hope you are doing good today!!
Here I am written the code for Pie chart, i want to display the Percentable(%) on the pie chart fields...
<!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>
We need to pass the data with JSON, In Current project we are using Java Script
Reply
Answers (
1
)
Insert and Update Data using azure qeues.
Dynamically Generate HTML Div’s and Insert Data into DB