-
-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e8c0980
Showing
56 changed files
with
3,483 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vue-chartjs.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<title>Coding Reference | 📈 vue-chartjs</title> | ||
<meta name="description" content="⚡ Easy and beautiful charts with Chart.js and Vue.js"> | ||
<link rel="stylesheet" href="/assets/style.5f10c5ca.css"> | ||
<link rel="modulepreload" href="/assets/chunks/AlgoliaSearchBox.de00b314.js"> | ||
<link rel="modulepreload" href="/assets/app.494b20fe.js"> | ||
<link rel="modulepreload" href="/assets/api_index.md.a284a332.lean.js"> | ||
|
||
<meta name="twitter:title" content="Coding Reference | 📈 vue-chartjs"> | ||
<meta property="og:title" content="Coding Reference | 📈 vue-chartjs"> | ||
</head> | ||
<body> | ||
<div id="app"><!--[--><div class="theme"><header class="nav-bar" data-v-2ba227d5><div class="sidebar-button" data-v-2ba227d5><svg class="icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z" class></path></svg></div><a class="nav-bar-title" href="/" aria-label="📈 vue-chartjs, back to home" data-v-2ba227d5 data-v-b3da5816><!----> 📈 vue-chartjs</a><div class="flex-grow" data-v-2ba227d5></div><div class="nav" data-v-2ba227d5><nav class="nav-links" data-v-2ba227d5 data-v-0fce24fe><!--[--><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item" href="/guide/" data-v-2cb643ba>Guide <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item" href="/migration-guides/" data-v-2cb643ba>Migration guides <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item active" href="/api/" data-v-2cb643ba>API <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item" href="/examples/" data-v-2cb643ba>Examples <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item isExternal" href="https://slack.cube.dev/?ref=eco-vue-chartjs" target="_blank" rel="noopener noreferrer" data-v-2cb643ba>Slack <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-2cb643ba><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item isExternal" href="https://stackoverflow.com/questions/tagged/vue-chartjs/" target="_blank" rel="noopener noreferrer" data-v-2cb643ba>Stack Overflow <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-2cb643ba><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><!--]--><!----><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item isExternal" href="https://github.com/apertureless/vue-chartjs" target="_blank" rel="noopener noreferrer" data-v-2cb643ba>GitHub <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-2cb643ba><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div></nav></div><!--[--><!--[--><div class="algolia-search-box" id="docsearch"></div><!--]--><!--]--></header><aside class="sidebar" data-v-79af364c><nav class="nav-links nav" data-v-79af364c data-v-0fce24fe><!--[--><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item" href="/guide/" data-v-2cb643ba>Guide <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item" href="/migration-guides/" data-v-2cb643ba>Migration guides <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item active" href="/api/" data-v-2cb643ba>API <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item" href="/examples/" data-v-2cb643ba>Examples <!----></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item isExternal" href="https://slack.cube.dev/?ref=eco-vue-chartjs" target="_blank" rel="noopener noreferrer" data-v-2cb643ba>Slack <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-2cb643ba><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item isExternal" href="https://stackoverflow.com/questions/tagged/vue-chartjs/" target="_blank" rel="noopener noreferrer" data-v-2cb643ba>Stack Overflow <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-2cb643ba><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><!--]--><!----><div class="item" data-v-0fce24fe><div class="nav-link" data-v-0fce24fe data-v-2cb643ba><a class="item isExternal" href="https://github.com/apertureless/vue-chartjs" target="_blank" rel="noopener noreferrer" data-v-2cb643ba>GitHub <svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-2cb643ba><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div></nav><!--[--><!--]--><ul class="sidebar-links" data-v-79af364c><!--[--><li class="sidebar-link"><a class="sidebar-link-item" href="#props">Props</a><!----></li><li class="sidebar-link"><a class="sidebar-link-item" href="#global-methods">Global Methods</a><ul class="sidebar-links"><li class="sidebar-link"><a class="sidebar-link-item" href="#createtypedchart">createTypedChart</a><!----></li></ul></li><!--]--></ul><!--[--><!--]--></aside><div class="sidebar-mask"></div><main class="page" data-v-30e7de44><div class="container" data-v-30e7de44><!--[--><!--]--><div style="position:relative;" class="content" data-v-30e7de44><div><h1 id="coding-reference" tabindex="-1">Coding Reference <a class="header-anchor" href="#coding-reference" aria-hidden="true">#</a></h1><h2 id="props" tabindex="-1">Props <a class="header-anchor" href="#props" aria-hidden="true">#</a></h2><p>There are some basic props defined in the components provided by <code>vue-chartjs</code>.</p><table><thead><tr><th>Prop</th><th>Description</th></tr></thead><tbody><tr><td>data</td><td>The data object that is passed into the Chart.js chart</td></tr><tr><td>options</td><td>The options object that is passed into the Chart.js chart</td></tr><tr><td>datasetIdKey</td><td>Key name to identificate dataset</td></tr><tr><td>plugins</td><td>The plugins array that is passed into the Chart.js chart</td></tr><tr><td>updateMode</td><td>A mode string to indicate transition configuration should be used.</td></tr></tbody></table><p>Rest props will fall through to the canvas element.</p><h2 id="global-methods" tabindex="-1">Global Methods <a class="header-anchor" href="#global-methods" aria-hidden="true">#</a></h2><p>Global Methods need to be imported.</p><h3 id="createtypedchart" tabindex="-1">createTypedChart <a class="header-anchor" href="#createtypedchart" aria-hidden="true">#</a></h3><ul><li><strong>Type:</strong> <code>Function</code></li><li><strong>Arguments</strong>:<code>chart-type</code>, <code>chart-controller</code></li><li><strong>Usage:</strong></li></ul><div class="language-js"><pre><code><span class="token keyword">import</span> <span class="token punctuation">{</span> createTypedChart <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'vue-chartjs'</span> | ||
<span class="token keyword">import</span> <span class="token punctuation">{</span> LineController <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'chart.js'</span> | ||
|
||
<span class="token keyword">const</span> CustomLine <span class="token operator">=</span> <span class="token function">createTypedChart</span><span class="token punctuation">(</span><span class="token string">'line'</span><span class="token punctuation">,</span> LineController<span class="token punctuation">)</span> | ||
</code></pre></div></div></div><footer class="page-footer" data-v-30e7de44 data-v-504b1bfc><div class="edit" data-v-504b1bfc><div class="edit-link" data-v-504b1bfc data-v-40c300d5><a class="link" href="https://github.com/apertureless/vue-chartjs/edit/main/website/src/api/index.md" target="_blank" rel="noopener noreferrer" data-v-40c300d5>Edit this page on GitHub <svg class="icon outbound icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-40c300d5><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="updated" data-v-504b1bfc><p class="last-updated" data-v-504b1bfc data-v-19e5f167><span class="prefix" data-v-19e5f167>Last Updated:</span><span class="datetime" data-v-19e5f167></span></p></div></footer><!----><!--[--><!--]--></div></main></div><!----><!--]--></div> | ||
<script>__VP_HASH_MAP__ = JSON.parse("{\"api_index.md\":\"a284a332\",\"examples_index.md\":\"807311bb\",\"guide_index.md\":\"516b45f9\",\"index.md\":\"05808d1c\",\"ja_api_index.md\":\"079878ad\",\"ja_guide_index.md\":\"8194d779\",\"ja_index.md\":\"76baad4c\",\"migration-guides_index.md\":\"c5c02963\",\"pt-br_api_index.md\":\"e70924fe\",\"pt-br_guide_index.md\":\"2bb553a6\",\"pt-br_index.md\":\"9ecbdeb8\",\"ru_api_index.md\":\"57e22624\",\"ru_guide_index.md\":\"2d993276\",\"ru_index.md\":\"e8a06353\",\"zh-cn_api_index.md\":\"d35aa510\",\"zh-cn_guide_index.md\":\"750273c0\",\"zh-cn_index.md\":\"e38db505\"}")</script> | ||
<script type="module" async src="/assets/app.494b20fe.js"></script> | ||
|
||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.