diff --git a/README.md b/README.md index 1613a3b0..b8b82398 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,8 @@ # GitHub Tracker -Replace this readme with your own information about your project. - -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. - -## The problem - -Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? +A place to keep track of the GitHub repos that I'm using at Technigo. +More practice in how to use API's to fetch data and how to get specific data from the JSON response. ## View it live -Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. +https://focused-galileo-574cbd.netlify.app/ diff --git a/code/.gitignore b/code/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/code/chart.js b/code/chart.js index 92e85a30..3b78583a 100644 --- a/code/chart.js +++ b/code/chart.js @@ -2,3 +2,33 @@ const ctx = document.getElementById('chart').getContext('2d') //"Draw" the chart here 👇 + +const labels = [ + 'Completed', + 'Left to complete', + ]; + + + +const renderChart = ((projects) => { //added + + + const data = { + labels: labels, + datasets: [{ + label: 'My projecs', + backgroundColor: 'rgb(255, 99, 132)', + borderColor: 'rgb(255, 99, 132)', + data: [projects, 19-projects], + }] + }; + + const config = { + type: 'bar', + data: data, + options: {} + }; + + const myChart = new Chart( + document.getElementById('chart'), config); +}); //added \ No newline at end of file diff --git a/code/index.html b/code/index.html index 2fb5e0ae..c9beaaee 100644 --- a/code/index.html +++ b/code/index.html @@ -6,14 +6,21 @@
${username}
+Recent push: ${new Date(repo.pushed_at).toDateString()}
+ + +
+
+
+
+ Simple yet flexible JavaScript charting for designers & developers
+
(props: P, final?: boolean): Pick (parentContext: P, context: T): P extends null ? T : P & T;
diff --git a/node_modules/chart.js/types/helpers/helpers.rtl.d.ts b/node_modules/chart.js/types/helpers/helpers.rtl.d.ts
new file mode 100644
index 00000000..ed0b9248
--- /dev/null
+++ b/node_modules/chart.js/types/helpers/helpers.rtl.d.ts
@@ -0,0 +1,12 @@
+export interface RTLAdapter {
+ x(x: number): number;
+ setWidth(w: number): void;
+ textAlign(align: 'center' | 'left' | 'right'): 'center' | 'left' | 'right';
+ xPlus(x: number, value: number): number;
+ leftForLtr(x: number, itemWidth: number): number;
+}
+export function getRtlAdapter(rtl: boolean, rectX: number, width: number): RTLAdapter;
+
+export function overrideTextDirection(ctx: CanvasRenderingContext2D, direction: 'ltr' | 'rtl'): void;
+
+export function restoreTextDirection(ctx: CanvasRenderingContext2D, original?: [string, string]): void;
diff --git a/node_modules/chart.js/types/helpers/helpers.segment.d.ts b/node_modules/chart.js/types/helpers/helpers.segment.d.ts
new file mode 100644
index 00000000..cb0ff5c3
--- /dev/null
+++ b/node_modules/chart.js/types/helpers/helpers.segment.d.ts
@@ -0,0 +1 @@
+export {};
diff --git a/node_modules/chart.js/types/helpers/index.d.ts b/node_modules/chart.js/types/helpers/index.d.ts
new file mode 100644
index 00000000..01332692
--- /dev/null
+++ b/node_modules/chart.js/types/helpers/index.d.ts
@@ -0,0 +1,15 @@
+export * from './helpers.canvas';
+export * from './helpers.collection';
+export * from './helpers.color';
+export * from './helpers.core';
+export * from './helpers.curve';
+export * from './helpers.dom';
+export * from './helpers.easing';
+export * from './helpers.extras';
+export * from './helpers.interpolation';
+export * from './helpers.intl';
+export * from './helpers.math';
+export * from './helpers.options';
+export * from './helpers.canvas';
+export * from './helpers.rtl';
+export * from './helpers.segment';
diff --git a/node_modules/chart.js/types/index.esm.d.ts b/node_modules/chart.js/types/index.esm.d.ts
new file mode 100644
index 00000000..ccea4128
--- /dev/null
+++ b/node_modules/chart.js/types/index.esm.d.ts
@@ -0,0 +1,3601 @@
+import { DeepPartial, DistributiveArray, UnionToIntersection } from './utils';
+
+import { TimeUnit } from './adapters';
+import { AnimationEvent } from './animation';
+import { AnyObject, EmptyObject } from './basic';
+import { Color } from './color';
+import { Element } from './element';
+import { ChartArea, Point } from './geometric';
+import { LayoutItem, LayoutPosition } from './layout';
+
+export { DateAdapter, TimeUnit, _adapters } from './adapters';
+export { Animation, Animations, Animator, AnimationEvent } from './animation';
+export { Color } from './color';
+export { Element } from './element';
+export { ChartArea, Point } from './geometric';
+export { LayoutItem, LayoutPosition } from './layout';
+
+export interface ScriptableContext