@mathstack/viz 0.0.1-beta.2 → 0.0.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -0,0 +1,11 @@
1
+ # VizComponents
2
+
3
+ ## Overview
4
+
5
+ Viz Components is a library of Angular components for building highly custom data visualizations,
6
+ built on top of D3.
7
+
8
+ Viz Components allows users to compose sub-chart level components into custom data visualizations
9
+ and to fully customize the system of visual marks used to represent data. At the same time, this
10
+ package takes care of common data viz functionality, such as setting scales, creating axes, and
11
+ responsively scaling svgs under the hood.
@@ -1857,7 +1857,7 @@ class XyAxis extends XyAuxMarks {
1857
1857
  this.wrapAxisTickText(tickText);
1858
1858
  }
1859
1859
  if (this.config.ticks.marksDisplay === false) {
1860
- const marks = select(this.elRef.nativeElement).selectAll('.tick line');
1860
+ const marks = select(this.elRef.nativeElement).selectAll(`.${this.class.axisGroup} .tick line`);
1861
1861
  marks.remove();
1862
1862
  }
1863
1863
  }
@@ -8478,7 +8478,7 @@ class LinesStrokeBuilder {
8478
8478
  * OPTIONAL. A value for the line's [stroke-dasharray]{@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray}
8479
8479
  * attribute.
8480
8480
  *
8481
- * @default 'round'
8481
+ * @default 'none'
8482
8482
  */
8483
8483
  dasharray(dasharray) {
8484
8484
  this._dasharray = dasharray;
@@ -9024,8 +9024,17 @@ class LinesComponent extends VicXyPrimaryMarks {
9024
9024
  .append('path')
9025
9025
  .attr('class', ([category], i) => `${this.class.line} ${this.config.datumClass(this.config.getDataFromCategory(category)[0], i)}`.trim())
9026
9026
  .attr('stroke', ([category]) => this.scales.color(category))
9027
+ .attr('stroke-dasharray', this.config.stroke.dasharray)
9028
+ .attr('stroke-linecap', this.config.stroke.linecap)
9029
+ .attr('stroke-linejoin', this.config.stroke.linejoin)
9030
+ .attr('stroke-width', this.config.stroke.width)
9027
9031
  .attr('d', ([, lineData]) => this.line(lineData)), (update) => update
9032
+ .attr('class', ([category], i) => `${this.class.line} ${this.config.datumClass(this.config.getDataFromCategory(category)[0], i)}`.trim())
9028
9033
  .attr('stroke', ([category]) => this.scales.color(category))
9034
+ .attr('stroke-dasharray', this.config.stroke.dasharray)
9035
+ .attr('stroke-linecap', this.config.stroke.linecap)
9036
+ .attr('stroke-linejoin', this.config.stroke.linejoin)
9037
+ .attr('stroke-width', this.config.stroke.width)
9029
9038
  .call((update) => update
9030
9039
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9031
9040
  .transition(t)