HKA

Getting Handle For Linked Chart

Recommended Posts

Hi,

 

Is it possible to obtain a handle/reference to a linked chart in drill down chart (rendered using javascript)?

 

Is it possible to do below?

 

var linkedChart = <handle for linked chart>

linkedChart.setAttribute ("showLabels":"0");

linkedChart.setTransparent(true);

 

Regards,

Hari

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Is it possible to obtain a handle/reference to a linked chart in drill down chart (rendered using javascript)?

 

Is it possible to do below?

 

var linkedChart = <handle for linked chart>

linkedChart.setAttribute ("showLabels":"0");

linkedChart.setTransparent(true);

 

Regards,

Hari

 

Hi,

 

Could you please explain you requirement?

 

Are you trying to get parent chart id or child chart id?

Share this post


Link to post
Share on other sites

Hi,

 

I am trying to get child chart id. In below JSON, how to get id of child chart opened by link "newchart-json-loans"

 

 

{

"chart" : {

"caption" : "Liability Details",

"subcaption" : "Liability details by account type",

"xaxisname" : "Account Type",

"yaxisname" : "Balance",

"numberSuffix" : " USD",

"showlegend" : "1"

},

"data" : [{

"label" : "Loans",

"value" : "30000",

"link" : "newchart-json-loans"

}, {

"label" : "Credit cards",

"value" : "10000",

"link" : "newchart-json-creditcards"

}

],

"linkeddata" : [{

"id" : "loans",

"linkedchart" : {

"chart" : {

"caption" : "Loan details",

"subcaption" : "Loan details by account",

"xaxisname" : "Account Number",

"yaxisname" : "Balance"

},

"data" : [{

"label" : "004",

"value" : "10000"

}, {

"label" : "006",

"value" : "20000"

}

]

}

}, {

"id" : "creditcards",

"linkedchart" : {

"chart" : {

"caption" : "Credit card details",

"subcaption" : "Credit card details by account",

"xaxisname" : "Account Number",

"yaxisname" : "Balance"

},

"data" : [{

"label" : "005",

"value" : "2000"

}, {

"label" : "007",

"value" : "8000"

}

]

}

}

]

}

 

Thanks,

Hari

Hi,

 

Could you please explain you requirement?

 

Are you trying to get parent chart id or child chart id?

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

I am afraid, there are no handlers defined to obtain the child's id, as of now.

Share this post


Link to post
Share on other sites

Ok, Thanks for the update.

 

Is there any method to dynamically update a linked chart's attributes?

 

Regards,

Hari

Hi,

 

I am afraid, there are no handlers defined to obtain the child's id, as of now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now