dangreen Github contribution chart
dangreen Github Stats
dangreen Most Used Languages

Activity

29 Sep 2022

Merge

Dangreen

refactor: move batch of helpers to ts

Forked On 29 Sep 2022 at 06:18:36

Dangreen

done
On 29 Sep 2022 at 06:18:36

Dangreen

refactor: move batch of helpers to ts

Merged On 29 Sep 2022 at 06:18:37

Dangreen

Commented On 29 Sep 2022 at 06:18:37
Merge

Dangreen

refactor: move batch of helpers to ts

Forked On 29 Sep 2022 at 06:18:32

Dangreen

done
On 29 Sep 2022 at 06:18:32

Dangreen

refactor: move batch of helpers to ts

Merged On 29 Sep 2022 at 06:18:33

Dangreen

Commented On 29 Sep 2022 at 06:18:33

Dangreen

refactor: review fixes

Pushed On 29 Sep 2022 at 06:17:46

Dangreen

refactor: move batch of helpers to ts

Pushed On 28 Sep 2022 at 10:29:27

Dangreen

refactor: move batch of helpers to ts

Created On 28 Sep 2022 at 10:16:52
Create Branch
Dangreen In TrigenSoftware/Chart.js Create Branchrefactor-ts-helpers

Dangreen

Simple HTML5 Charts using the <canvas> tag

On 28 Sep 2022 at 10:16:24

Dangreen

Use guard clause typings (#10683)

  • Use guard clasue

  • use function type instead of build in function

Pushed On 28 Sep 2022 at 10:15:13

Dangreen

add ts explanation and unify display of snipets (#10708)

Pushed On 28 Sep 2022 at 10:15:13

Dangreen

Add defaults to plugin interface (#10712)

Pushed On 28 Sep 2022 at 10:15:13

Dangreen

Update namespace (#10719)

Pushed On 28 Sep 2022 at 10:15:13

Dangreen

fix: aspect ratio calc (#10693)

Pushed On 28 Sep 2022 at 10:15:13
Issue Comment

Dangreen

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'axis')

Not happening with npm run autobuild but is with npm run build when I deploy my code, I'm getting this image And the chart isn't rendering For a dataset that looks like this image And a svelte config like

<script>
import { onMount } from 'svelte';
import {  fetchGet } from "../../helpers";
import { Bar } from 'svelte-chartjs';
import {
    Chart,
    Title,
    Tooltip,
    Legend,
    BarElement,
    CategoryScale,
    LinearScale,
  } from 'chart.js';

  Chart.register(
    Title,
    Tooltip,
    BarElement,
    CategoryScale,
    LinearScale
  );
let loaded = false;
let data = {
  labels: [],
};

onMount(async () => {
    let res = await fetchGet('/api/pool/all/stats');
    data = await res.data;
    data = data;
    loaded = true;
 });
</script>
<div>
<div>
    {#if loaded}
    <Bar {data} options={{ responsive: true  }}/>    
    {/if}
</div> 

Forked On 28 Sep 2022 at 11:51:23

Dangreen

@Zedespook Could you please provide minimal repo with reproduction?

Commented On 28 Sep 2022 at 11:51:23
Issue Comment

Dangreen

[Bug]: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused.

Would you like to work on a fix?

  • [ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Getting this error after upgrading to new version.

Reproduction

hmm

chart.js version

3.7.1

react-chartjs-2 version

4.1.0

Possible solution

No response

Forked On 28 Sep 2022 at 11:50:19

Dangreen

Hi @dinaAlsaid @HernanGH ! We've had no luck trying to reproduce the issue. Would you please fork this codesandbox and replicate it?

@jefelewis Is it the reproduction of the issue? Your example is perfectly working: https://codesandbox.io/s/jolly-pateu-wiuvn1?file=/App.tsx

Commented On 28 Sep 2022 at 11:50:19
Issue Comment

Dangreen

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'axis')

Not happening with npm run autobuild but is with npm run build when I deploy my code, I'm getting this image And the chart isn't rendering For a dataset that looks like this image And a svelte config like

<script>
import { onMount } from 'svelte';
import {  fetchGet } from "../../helpers";
import { Bar } from 'svelte-chartjs';
import {
    Chart,
    Title,
    Tooltip,
    Legend,
    BarElement,
    CategoryScale,
    LinearScale,
  } from 'chart.js';

  Chart.register(
    Title,
    Tooltip,
    BarElement,
    CategoryScale,
    LinearScale
  );
let loaded = false;
let data = {
  labels: [],
};

onMount(async () => {
    let res = await fetchGet('/api/pool/all/stats');
    data = await res.data;
    data = data;
    loaded = true;
 });
</script>
<div>
<div>
    {#if loaded}
    <Bar {data} options={{ responsive: true  }}/>    
    {/if}
</div> 

Forked On 28 Sep 2022 at 11:42:51

Dangreen

@Zedespook Please try v3

Commented On 28 Sep 2022 at 11:42:51
Issue Comment

Dangreen

Please provide a `dist` folder at the root of the repository

Would you like to work on this feature?

  • [ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.

What problem are you trying to solve?

The old repository/version had that and it was really useful to be able to copy two files and get a graph displayed. Especially for educational purpose but also for small/static experiments when you don't want to depend on node+npm, etc.

Describe the solution you'd like

Integrate a way during the build/release process to commit the latest version of the package at the root of the repository.

Describe alternatives you've considered

Go grab it from unpkg or similar. Maybe grab it from the (future) documentation website if not minified…

Documentation, Adoption, Migration Strategy

No response

Forked On 28 Sep 2022 at 11:38:49

Dangreen

@davidbgk Hi. You can grab it from unpkg: http://unpkg.com/chartist

Commented On 28 Sep 2022 at 11:38:49
Issue Comment

Dangreen

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'axis')

Not happening with npm run autobuild but is with npm run build when I deploy my code, I'm getting this image And the chart isn't rendering For a dataset that looks like this image And a svelte config like

<script>
import { onMount } from 'svelte';
import {  fetchGet } from "../../helpers";
import { Bar } from 'svelte-chartjs';
import {
    Chart,
    Title,
    Tooltip,
    Legend,
    BarElement,
    CategoryScale,
    LinearScale,
  } from 'chart.js';

  Chart.register(
    Title,
    Tooltip,
    BarElement,
    CategoryScale,
    LinearScale
  );
let loaded = false;
let data = {
  labels: [],
};

onMount(async () => {
    let res = await fetchGet('/api/pool/all/stats');
    data = await res.data;
    data = data;
    loaded = true;
 });
</script>
<div>
<div>
    {#if loaded}
    <Bar {data} options={{ responsive: true  }}/>    
    {/if}
</div> 

Forked On 28 Sep 2022 at 11:34:19

Dangreen

@Zedespook @LKing12 What version of svelte-chartjs are you using?

Commented On 28 Sep 2022 at 11:34:19

Dangreen

docs: new website (#1352)

Pushed On 27 Sep 2022 at 09:32:57

Dangreen

docs: new website

Created On 27 Sep 2022 at 09:32:56

Dangreen

fix: calc visible points on update (#10667)

Pushed On 27 Sep 2022 at 09:26:18

Dangreen

Exclude dist folder form linting (#10701)

Pushed On 27 Sep 2022 at 09:26:18

Dangreen

Add warning if filler plugin is used but not registered (#10702)

  • add warning if filler plugin is used but not registered

  • fix lint

  • increase size limit

  • add test, only put warning in dataset controller

  • fix register in docs, remove commented code

  • remove other mr

  • add documentation

  • Apply suggestions from code review

Co-authored-by: Jukka Kurkela jukka.kurkela@gmail.com

  • Also return false if plugin is disabled by options

  • improve warning message

  • undo docs changes

  • update test

Co-authored-by: Jukka Kurkela jukka.kurkela@gmail.com

Pushed On 27 Sep 2022 at 09:26:18

Dangreen

ci: remove compat mode (#1358)

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

fix: label position fix (#1357)

fixes #1266

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

fix: B and I series have the same color value (#1356)

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

chore(release): 1.1.3

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

fix: SvgPath.parse fails on negative values (#1360)

  • fix: SvgPath.parse fails on negative values

  • test: add test with negative values

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

docs: new website

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

docs: review fixes

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

docs: review fixes

Pushed On 27 Sep 2022 at 09:25:33

Dangreen

docs: review fixes

Pushed On 27 Sep 2022 at 09:25:33
Create Branch

Dangreen

📊 Vue.js wrapper for Chart.js

On 27 Sep 2022 at 08:46:56

Dangreen

chore(release): 4.1.2

Pushed On 27 Sep 2022 at 08:46:56

Dangreen

Add defaults to plugin interface

Resolves: #10709

Merged On 27 Sep 2022 at 08:26:39

Dangreen

Commented On 27 Sep 2022 at 08:26:39

Dangreen

Unify data structure snipets and add ts explanation

Merged On 27 Sep 2022 at 08:26:29

Dangreen

Commented On 27 Sep 2022 at 08:26:29