Browse Source

Merge branch 'fix-x-axis-label-position' into 'main'

Fix x-axis label position

See merge request chartwerk/core!20
merge-requests/21/merge
rozetko 3 years ago
parent
commit
3b03a04b8d
  1. 2
      package.json
  2. 2
      src/index.ts

2
package.json

@ -1,6 +1,6 @@
{
"name": "@chartwerk/core",
"version": "0.6.0",
"version": "0.6.1",
"description": "Chartwerk core",
"main": "dist/index.js",
"types": "dist/index.d.ts",

2
src/index.ts

@ -496,7 +496,7 @@ abstract class ChartwerkPod<T extends Serie, O extends Options> {
return;
}
let yPosition = this.height + this.margin.top + this.margin.bottom - 35;
if(this.series.isSeriesAvailable) {
if(!this.series.isSeriesAvailable) {
yPosition += 20;
}
this.chartContainer.append('text')

Loading…
Cancel
Save