Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
Problem with MetricsGraphics module loading

I'm trying to implement the Metrics Graphics library into the (custom coded) WordPress site. By instructions from the library's readme, I installed the module using Yarn, and tried to import it with the following code:

import LineChart from './metrics-graphics';

var data = [{'date': new Date('2014-10-01'), 'value': 100}, {'date': new Date('2014-11-01'), 'value': 200}, {'date': new Date('2014-12-01'), 'value': 300}];
data_graphic({
    target: '.timeseries-graph-wrapper',
    data: data,
    title: "Dummy timeseries graph",
    description: 'This is dummy timeseries graph',
    x_accessor: 'date',
    y_accessor: 'value'
});

But, after script execution I get this error message:

Loading module from “https://localhost/new.biznob.com/wp-content/plugins/market-data/js/metrics-graphics/” was blocked because of a disallowed MIME type (“text/html”)

What should I do to properly import the library?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda