Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Jul 2, 2023
1 parent 4818871 commit 9db0cab
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This is a small chart library for Angular based on D3js. It currently supports s
Angular 16

## Articles
* [A scrolling Date/Timeline Chart with Angular Material Components](https://angular2guy.wordpress.com/2023/07/01/a-scrolling-date-timeline-chart-with-angular-material-components/)
* [Developing and Using Angular Libraries](https://angular2guy.wordpress.com/2021/07/31/developing-and-using-angular-libraries/)
* [Ngx-Simple-Charts multiline and legend support howto](https://angular2guy.wordpress.com/2021/10/02/ngx-simple-charts-multiline-and-legend-support-howto/)
* [Multiple Entry Points for the NgxSimpleCharts Angular Library](https://angular2guy.wordpress.com/2021/12/26/multiple-entry-points-for-ngxsimplecharts-angular-library/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-simple-charts",
"version": "16.1.1",
"version": "16.1.2",
"license": "Apache License Version 2.0",
"scripts": {
"ng": "ng",
Expand Down
1 change: 1 addition & 0 deletions projects/ngx-simple-charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This is a small chart library for Angular based on D3js. It currently supports s
Angular 16

## Articles
* [A scrolling Date/Timeline Chart with Angular Material Components](https://angular2guy.wordpress.com/2023/07/01/a-scrolling-date-timeline-chart-with-angular-material-components/)
* [Developing and Using Angular Libraries](https://angular2guy.wordpress.com/2021/07/31/developing-and-using-angular-libraries/)
* [Ngx-Simple-Charts multiline and legend support howto](https://angular2guy.wordpress.com/2021/10/02/ngx-simple-charts-multiline-and-legend-support-howto/)
* [Multiple Entry Points for the NgxSimpleCharts Angular Library](https://angular2guy.wordpress.com/2021/12/26/multiple-entry-points-for-ngxsimplecharts-angular-library/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,17 @@ export class ScDateTimeChartBase {
new Date()
) as Date;
//console.log(this.localStart);
/*
const startOfChart = DateTime.fromJSDate(this.localStart)
.setLocale(this.locale)
.setZone(Intl.DateTimeFormat().resolvedOptions().timeZone)
.toJSDate();
*/
const myEndOfYear = new Date(new Date().getFullYear(), 11, 31, 23, 59, 59);
const endOfYear = DateTime.fromJSDate(myEndOfYear)
.setLocale(this.locale)
.setZone(Intl.DateTimeFormat().resolvedOptions().timeZone)
.toJSDate();
let myItem = new ChartItem<Event>();
myItem.end = DateTime.fromJSDate(new Date(0, 11, 31))
.setLocale(this.locale)
.setZone(Intl.DateTimeFormat().resolvedOptions().timeZone)
.toJSDate();
const lastEndItem = this.localItems.reduce((acc, newItem) => {
const accEnd = !!acc?.end?.valueOf() ? acc?.end?.valueOf() : -1;
const newItemEnd = !!newItem?.end?.valueOf()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export class ScDateTimeChartComponent
ngAfterViewInit(): void {
this.calcTimeChartValues();
setTimeout(() => {
//console.log('afterViewInit');
let myPeriods = !this.showDays ? this.periodYears : this.periodMonths;
myPeriods = myPeriods.filter(
(myPeriod) => myPeriod.diffNow().seconds <= 0
Expand All @@ -73,8 +72,6 @@ export class ScDateTimeChartComponent
}
this.calcTimeChartValues();
}, 1000);
//console.log(this.timeChartHeight);
//console.log(this.headerLineRef?.nativeElement?.clientHeight);
}

ngOnInit(): void {
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-simple-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-simple-charts",
"version": "16.1.1",
"version": "16.1.2",
"license": "Apache License Version 2.0",
"peerDependencies": {
"@angular/common": "^16.0.0",
Expand Down

0 comments on commit 9db0cab

Please sign in to comment.