Platform

Platform

 View Only
  • 1.  Creating Legend in HTML

    Posted Fri March 23, 2018 08:09 PM

    I've spend quite a bit of time on this, but no luck yet.  Does anyone know how I would create a custom Legend via HTML for the Legend below?


    #Platform


  • 2.  Re: Creating Legend in HTML

    Posted Sun March 25, 2018 06:58 PM

    Hi Doug,

     

    Not sure I am 100% sure on the question. Are you just asking how to write the HTML to create a static image that would be shown below your graph? If so then it should simple be this with the images changed to match your own

    <img src="https://logos.apptio.com/acme_corp_logo.png" width="15" height="15">
    Insert text 
    <img src="https://logos.apptio.com/acme_corp_logo.png" width="15" height="15" >
    Insert Text 
    <img src="https://logos.apptio.com/acme_corp_logo.png" width="15" height="15" >
    Insert Text
    <img src="https://logos.apptio.com/acme_corp_logo.png" width="15" height="15" >
    Insert Text 
    <img src="https://logos.apptio.com/acme_corp_logo.png" width="15" height="15" >
    Insert Text

     

    However I get the feeling there might be more to your question .... If so please elaborate.

     

    Cheers

    Dru


    #Platform


  • 3.  Re: Creating Legend in HTML

    Posted Mon March 26, 2018 08:43 AM

    This would be a way to create a legend that looks like the one above, but it would not take into account the actual colours of the data on the charts. There currently (as far as I'm aware) is no way to create an HTML "legend" for a chart that will accurately reflect the colours of the data. That is, what may be blue this time might not be blue next time, but your HTML legend will stay blue.


    #Platform


  • 4.  Re: Creating Legend in HTML

    Posted Mon March 26, 2018 01:54 PM

    Thanks @Dru Robinson.  Yes, I'm trying to create a static legend.  In this case I'm using an Overlay Chart,,,but in other cases where I have longer labels (more than 23 characters I believe), I'd like to be able to create a static legend to spell out the entire label.  I believe you can set the colors in the chart properties to agree with your static legend @Jonathan Cutting.


    #Platform


  • 5.  Re: Creating Legend in HTML

    Posted Tue July 24, 2018 09:39 AM

    If you are willing to use an image, you can save your legend as an image and then convert to Base64 image code and paste that into your HTML.  That is what we are doing for modal help windows.  For our help windows we create the help page in Publisher, save as an image and then pasting the Base64 code into an HTML box.  We then place the HTML code on a report and then link the button navigation to that report.


    #Platform