question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The last fix broke the legend display

See original GitHub issue

As the title says.

No custom css, or anything.

Markup:

<div id="lineGraph" class="col-lg-6" colour="primary">
    <div class="panel panel-primary">
        <div class="panel-heading"><i class="fa fa-line-chart"> </i> Graph</div>
        <canvas id="line" class="chart chart-line" chart-data="data"
                chart-labels="labels" chart-legend="true" chart-series="series"
                chart-click="onClick">
        </canvas>
    </div>

legend

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
etimbergcommented, Apr 6, 2016

Fixed in 1.1.1 release

1reaction
eemikulacommented, Apr 4, 2016

Redefining the legendTemplate works, but it seems to me to be fixing it on the wrong end. Note that this change will also break the main page on chartjs.org whenever it’s updated to version 1.1.0 - I simulated that by copying the same structure into a jsbin here: http://jsbin.com/likuwekeba/edit?html,console,output

Rather than having everyone who was happy with their legend need to customize their template, I think the template should be changed. If the original intent of the change was just to ensure that the text is enclosed in a tag that can be styled, then maybe there should be two separate spans used, so they can be styled independently. e.g.

<ul>
 <li>
  <span class="legend-icon" style="background-color:#d08770"></span><span class="legend-text">Text Goes Here</span>
 </li>
</ul>
Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New - Legend
Update New Heading item type! · Feature A display setting “Hide icons in inactive items” which unless hovered, hides Heading icons and the...
Read more >
5 Ways to Fix League of Legends Black Screen
Getting a Black Screen After Launching League of Legends? Here's How You Can Fix That. League of Legends (LoL) is a hugely popular...
Read more >
I think my Apex is broken. I cant select the Legends, Loadout ...
I tried to repair it on steam but still same. ... Nope it doesn't, it will make you able to view the legends...
Read more >
3 Ways to Repair League of Legends - wikiHow
1. Update your video card drivers. Video card drivers are the software that allows your graphics card to work with your computer. If...
Read more >
Fix My League: The First Steps to Tech Help
The Riot Repair Tool is the latest innovation in self-service fixes from ... It is a multi-purpose tool (and works with VALORANT, Legends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found