Fix legend title drawing + update sample (#7060)

This commit is contained in:
Evert Timberg 2020-02-06 07:31:33 -05:00 committed by GitHub
parent a30f753321
commit 93757a53e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>Legend Positions</title>
<title>Legend Title Positions</title>
<script src="../../dist/Chart.min.js"></script>
<script src="../utils.js"></script>
<style>

View File

@ -513,7 +513,7 @@ class Legend extends Element {
return;
}
const rtlHelper = getRtlAdapter(opts.rtl, me.left, me.minSize.width);
const rtlHelper = getRtlAdapter(opts.rtl, me.left, me._minSize.width);
const ctx = me.ctx;
const fontColor = valueOrDefault(titleOpts.fontColor, defaults.fontColor);
const position = titleOpts.position;