Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange "test" in legend by default #11

Open
jonyrock opened this issue Dec 27, 2020 · 1 comment
Open

strange "test" in legend by default #11

jonyrock opened this issue Dec 27, 2020 · 1 comment

Comments

@jonyrock
Copy link
Contributor

if your pod like this

import { GaugeOptions, GaugeTimeSerie } from './types';
import { ChartwerkPod } from '@chartwerk/core';

import * as d3 from 'd3';


export class Pod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions> {

  constructor(el: HTMLElement, _series: GaugeTimeSerie[], options: GaugeOptions) {
    super(d3, el, _series, options);
  }

  renderMetrics(): void {
  }

  /* handlers and overloads */
  onMouseOver(): void {}
  onMouseMove(): void {}
  onMouseOut(): void {}
  renderSharedCrosshair(): void {}
  hideSharedCrosshair(): void {}
}

you get:

image

@jonyrock
Copy link
Contributor Author

It came from this chartwerk pod initialisation:

<html>
<script type="text/javascript">
  var pod = new MyChartwerkPod(
    document.getElementById('chart'),
    [{
      target: 'test',
      datapoints: [[3, 20], [4, 25]] 
    }],{}
  );
  pod.render();
</script>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant