Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
SciChart: trabajar con gráficos de mapas de calor de JavaScript

Estoy usando SciChart Library para mostrar JS Heatmap Chart.

De acuerdo con la siguiente documentación, la variable zValues se genera mediante la función de iteración , pero cuando intento usarla en mi sitio web basado en HTML y CSS, no funciona.

https://demo.scichart.com/javascript-heatmap-chart

El error que estoy recibiendo es:

 Uncaught SyntaxError: Unexpected token ':'

He escrito el siguiente Código:

Código:

 var {sciChartSurface, wasmContext} = await SciChart.SciChartSurface.create("line_chart_3"); // Add XAxis and YAxis sciChartSurface.xAxes.add(new SciChart.NumericAxis(wasmContext)); sciChartSurface.yAxes.add(new SciChart.NumericAxis(wasmContext)); // Create a Heatmap Data-series. Pass heatValues as a number[][] to the UniformHeatmapDataSeries var initialZValues: number[][] = iterate(WIDTH, HEIGHT, 200, 0, MAX_SERIES); var heatmapDataSeries = new SciChart.UniformHeatmapDataSeries(wasmContext, { xStart: 100, xStep: 1, yStart: 100, yStep: 1, zValues: initialZValues }); // Create a Heatmap RenderableSeries with the color map. ColorMap.minimum/maximum defines the values in // HeatmapDataSeries which correspond to gradient stops at 0..1 var heatmapSeries = new SciChart.UniformHeatmapRenderableSeries(wasmContext, { dataSeries: heatmapDataSeries, colorMap: new SciChart.HeatmapColorMap( { minimum: 0, maximum: 200, gradientStops: [ { offset: 0, color: "#00008B" }, { offset: 0.2, color: "#6495ED" }, { offset: 0.4, color: "#006400" }, { offset: 0.6, color: "#7FFF00" }, { offset: 0.8, color: "#FFFF00" }, { offset: 1.0, color: "#FF0000" } ] }) });

El código anterior está generando un error en: var initialZValues: number[][] = iterate(WIDTH, HEIGHT, 200, 0, MAX_SERIES);

Por favor ayuda.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

La siguiente línea de código es Typescript

 var initialZValues: number[][] = iterate(WIDTH, HEIGHT, 200, 0, MAX_SERIES);

elimine el : number[][] y debería ejecutarse.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!