How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Mr. Gregory White Your Own Question

Mr. Gregory White
Mr. Gregory White, Professor
Category: Homework
Satisfied Customers: 5239
Experience:  M.A., M.S. Education / Educational Administration
46856550
Type Your Homework Question Here...
Mr. Gregory White is online now
A new question is answered every 9 seconds

I'm just trying to get the values of header.title.text IE.

Customer Question

I'm just trying to get the values of
header.title.text IE. RFP's
and
data.content.label.value
into javascript variables.
of the segment of the pie chart I've clicked on....
code.... call back is at the bottom.
var pie = new d3pie("pieChart", {
"header": {
"title": {
"text": "RFP's",
"fontSize": 22,
"font": "verdana"
},
"subtitle": {
"text": "",
"color": "#999999",
"fontSize": 10,
"font": "verdana"
},
"titleSubtitlePadding": 7
},
"footer": {
"color": "#999999",
"fontSize": 11,
"font": "open sans",
"location": "bottom-center"
},
"size": {
"canvasHeight": 230,
"canvasWidth": 330,
"pieOuterRadius": "75%"
},
"data": {
"content": [
{
"label": "Closed",
"value": rfp_c,
"color": "#ffffff"
},
{
"label": "Bid Pending",
"value": rfp_b,
"color": "#ebb207"
},
{
"label": "Workorder",
"value": rfp_w,
"color": "#00e600"
},
{
"label": "Unsubmitted",
"value": rfp_o,
"color": "#45a7d7"
}
]
},
"labels": {
"outer": {
"pieDistance": 32
},
"inner": {
"format": "value"
},
"mainLabel": {
"font": "verdana",
"fontSize": 11
},
"percentage": {
"color": "#151212",
"font": "verdana",
"decimalPlaces": 0
},
"value": {
"color": "#1a1616",
"font": "verdana"
},
"lines": {
"enabled": true,
"color": "#cccccc"
},
"truncation": {
"enabled": true
}
},
"tooltips": {
"enabled": true,
"type": "placeholder",
"string": "{label}: {value}, {percentage}%"
},
"effects": {
"pullOutSegmentOnClick": {
"effect": "none",
"speed": 400,
"size": 8
}
},
callbacks: {
onClickSegment: function(a) {
var target=event.target.id;
alert(target);
var vl=pie.options.data.content.label[1];
alert(vl);
}
}
});
Submitted: 11 months ago.
Category: Homework
Expert:  Mr. Gregory White replied 11 months ago.

Hello, my name is***** data is not showing correctly (in column forms) - can you provide the original assignment in document form? Be sure to also include the specific directions for what you are needing.

You can use a file sharing site such as mediafire.com or wikisend.com and then share the link here with me to view.

Here are the steps to use wikisend as it is the easiest and does not require an account. We are not able to get things by email (unfortunately)

1. Go to www.wikisend.com
2. Click on the "Browse" Button
3. Find the file on your computer and select it - this will place the link in the box on the site.
4. Click on "Upload File"
5. This will then open a new window.
6. You will see a box that says "Download Link" - Copy and Paste that weblink in the box here for me.

I can then open your file onto my computer.

You can repeat this for each of the files. Place all the link into one reply box here and then I can open any of the documents.

This will ensure I get the materials quickly.

Customer: replied 11 months ago.
I will do that when I get home this evening.
Customer: replied 11 months ago.
http://www.wikisend.com/download/989560/client_portal.php..I can call you if you like....This is what i need.....
at the end of the first pie definition... I'm trying to assign the values to variables to use in my code but don't know how.
Namely value of "text" in the "header" (which is RFP's) in"header": {
"title": {
"text": "RFP's",
"fontSize": 22,
"font": "verdana"
},ANDthe actual values of data.content.label and value of the map segment I've just clicked on."data": {
"content": [
{
"label": "Closed",
"value": rfp_c,
"color": "#ffffff"
},
{
"label": "Bid Pending",
"value": rfp_b,
"color": "#ebb207"
},
{
"label": "Workorder",
"value": rfp_w,
"color": "#00e600"
},
{
"label": "Unsubmitted",
"value": rfp_o,
"color": "#45a7d7"
}
]
},
Customer: replied 11 months ago.
did u get the data you needed?
Customer: replied 11 months ago.
are you there?
Expert:  Mr. Gregory White replied 11 months ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
Customer: replied 11 months ago.
thanks...
Customer: replied 11 months ago.
any luck on getting someone to look at this?
Customer: replied 11 months ago.
I have not heard back from anyone on this.It's been 2 weeks