Sign in to follow this  
Pallav

Custom Objects

Recommended Posts

Yes, I know that I was trying to add the custom object. I am trying to reproduce the linear chart in your examples that has a gradient. My point is that when adding the custom object it is sized differently than the underlying linear chart. The full custom object does not show. If I increase the size of the chart and the custom object, then the scale of the underlying chart does not change.

 

 

 

What I am trying to get is this lineargradient.jpg

 

 

 

But what I am getting instead is this linearwrong.jpg

 

 

 

What I am trying to understand is what is wrong with the second chart?

 

 

 

Paul

Share this post


Link to post
Share on other sites

The custom objects are pixel based drawings. They do not scale w.r.t chart. So, if you scale the chart, you'll manually need to scale the custom objects.

Share this post


Link to post
Share on other sites

Thank you, Pallav for your response. However, in reading all the documentation I can find about this, I am still puzzled as to why the images are displaying so differently. I have changed the scale but not the size of the underlying linear chart. You can see that your sample begins with 0. But, mine ranges from -200 to +200. But changing the scale and changing the size are two different things if I understand correctly. If I must change the scale of the pixel based object, how and where do I do that in the XML to make it scale correctly with the underlying object that is scaled as shown but whose size is no different than the one in your documentation example? I have played with and changed every setting I can see in the data.xml file. Must I also change something in the html to reflect the changed scaling?

Paul

Share this post


Link to post
Share on other sites

After some more fiddling I think I see where I misunderstood.

 

 

 

I had to reset and adjust all the xpos ypos stuff in the xml to get it to match up with the scale of the chart. Got it. Thanks.

 

 

 

Paul

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
Sign in to follow this