How to use the victory.combineContainerMixins function in victory

To help you get started, we’ve selected a few victory examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TerriaJS / terriajs / lib / ReactViews / Custom / Chart / BottomDockChart.jsx View on Github external
get containerComponent() {
    const mixins = [
      voronoiContainerMixin,
      zoomContainerMixin
      // cursorContainerMixin -- TODO: breaks eventHandlers used for moment charts
    ];
    const Container = combineContainerMixins(mixins, VictoryContainer);

    const getTooltipValue = ({ datum }) => {
      const tooltipValue = datum.tooltipValue || datum.y;
      const units = datum.units || "";
      return `${datum.name}: ${tooltipValue} ${units}`;
    };
    return (
      
        }
        labels={getTooltipValue}
        labelComponent={}