Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Tagvalue in Labels
PostPosted: Sun Jun 16, 2013 12:56 pm 

Joined: Fri Apr 13, 2012 2:47 am
Posts: 8

Offline
Hi.
In Chart > edit series you can make labeltexts. Is it possible to insert a tagvalue?
For example: I want to label a value with the corresponding hour.

Thanks

_________________
Bendt P. Johansen

Technician /
Qualified electrician


Vandteknik ApS
Skalsbyvej 2
DK-4735 Mern
Denmark


 Profile  
 
 Post subject: Re: Tagvalue in Labels
PostPosted: Mon Jun 17, 2013 8:36 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
No , you can not dynamically change the series labels. You can create your own legend by using Text boxes and then using code to assign them a value. You can use a small rectangle the same color as the series to indicate which label goes with which series.

Code to set Text box:
this.Text1.Text = "MyText " + Globals.Tags.Tag1.Value.ToString();

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: Tagvalue in Labels
PostPosted: Fri Sep 11, 2015 1:46 pm 

Joined: Tue Sep 08, 2015 1:32 pm
Posts: 15

Offline
I have a similar problem to this, I'm dynamically assigning a variantValue array (of ints) to a series' y values successfully but when I try to assign a variantValue array of (datetime's) to the series' xvalues, the terminal crashes to the T7A boot screen. Is this possible to do or will I have to use labels as above?

I'd like to be able to use the same chart for 7 days, 31 days, 12 months, etc. Making labels for all these possibilities would be extremely messy!


 Profile  
 
 Post subject: Re: Tagvalue in Labels
PostPosted: Wed Sep 16, 2015 9:07 am 

Joined: Tue Sep 08, 2015 1:32 pm
Posts: 15

Offline
Since submitting the above post, I've almost managed to solve my problem by assigning a new LabelsList containing the dates to "Series[0].Labels". This works but unfortunately also overwrites the Y-Axis value at the top of each bar with the date as shown in the attachment.

Does anyone know if this is possible to fix or even remove these labels from the top of the bars?


Attachments:
Chart_Labels.png
Chart_Labels.png [ 7.71 KiB | Viewed 3821 times ]
 Profile  
 
 Post subject: Re: Tagvalue in Labels
PostPosted: Thu Feb 04, 2016 2:54 am 

Joined: Sun Jun 28, 2015 9:18 pm
Posts: 9

Offline
Thanks for the info
เล่นไพ่บาคาร่า


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: