LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure table cell color in an html report generation?

Hi,

 

I am generating an html report with some graphs and calculated values. The calculated values are actually storen in an array that is then used to populate a table in the generation of the report. Now I was requested to add a legent that link the values in the table with the ploted graph. I can get the colors of the diferent graphs plotted, but, is there any way to add acolumn in my table stting each row cell with the corresponding color of the poted graph? I really will appreciate your help with this matter. I have about three days looking in the forum for some guidance and trying to figure out how to do this without any success.

Ferdinand Martinez
FMO Automation LLC
0 Kudos
Message 1 of 3
(3,155 Views)

Hi Ferdinand,

 

I see that you have been working with another Applications Engineer, Nate.  I'm going to go ahead and put his suggestions in this post for the sake of the community, please let us know if these help!

 

1. Although you mentioned that you do not want to use a legend to the graph, we can dynamically change the amount of plots on the legend programmatically. I have included modified VI from the HTML report, and a modified "stripchart.vi," from that example. I apologize that this is a somewhat messy example, so please let me know if you are confused why I made a specific modification. 

2. We could manually write some html script, like the example uses, if you have a specific call you would like to make. 

3. You could also possibly create your own indicator, such as an array of clusters with a plot label and Framed Color Box. 

All in all, I think the first case will be the more straight forward. I have attached the VIs for your review, which in LabVIEW 2011 version.

 

 

 

 

Matt S.
Industrial Communications Product Support Engineer
National Instruments
Download All
0 Kudos
Message 2 of 3
(3,129 Views)

Old thread, but it might answer couple similar issues.

https://lavag.org/files/file/279-html-color-table/

Benoit

0 Kudos
Message 3 of 3
(2,778 Views)