scatterplot.render bug
See original GitHub issuetfjs-vis ver @lastest (1.4.0)
chrome ver 83.0.4103.97
i’m running the demo code in the chrome, the console print 'Cannot read property ‘length’ of undefined ’
the demo code at ‘https://js.tensorflow.org/api_vis/1.4.0/#render.scatterplot’ is:
import * as tfvis from '@tensorflow/tfjs-vis'; // this is my import
const series1 = Array(100).fill(0)
.map(y => Math.random() * 100 - (Math.random() * 50))
.map((y, x) => ({ x, y, }));
const series2 = Array(100).fill(0)
.map(y => Math.random() * 100 - (Math.random() * 150))
.map((y, x) => ({ x, y, }));
const series = ['First', 'Second'];
const data = { values: [series1, series2], series }
const surface = { name: 'Scatterplot', tab: 'Charts' };
tfvis.render.scatterplot(surface, data);
here is the error message print on console:
Uncaught (in promise) TypeError: Cannot read property ‘length’ of undefined at expression (expression.js:6) at Object.operator (expression.js:25) at Context.operatorExpression (context.js:147) at Context.parseOperator (operator.js:12) at dataflow.js:24 at Array.forEach (<anonymous>) at Context._default [as parse] (dataflow.js:24) at _default (runtime.js:6) at new View (View.js:76) at Object.<anonymous> (embed.ts:276)
i think isn’t fjs-vis version not match it’s dependencies version ?
sorry for my broken english…
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Scatter plot render artifacts · Issue #889 - GitHub
This looks like a rendering bug related to GDI+. It occurs when lines are drawn that extend extremely long distances off the screen....
Read more >Can't render image in a scatter plot from a Sharepoint library
Labels in scatter plot are configured to display images via URL. However in Web Player, I get message "The value coud not be...
Read more >r - Shiny - plots don't render - no error code - Stack Overflow
This code runs with no error but I plots aren't rendering (or not ... filedata() #Scatterplot sp <- ggplot(dat, aes(x=input$independent, ...
Read more >Scatterplot chart options | Looker - Google Cloud
Render log charts with values between 0 and 1. Each y-axis has its own set of configuration options and displays one or more...
Read more >Make_subplots + hrect rendering bug - Plotly Community Forum
I have the following code cell in a jupyter-notebook: import pandas as pd import numpy as np from plotly.subplots import make_subplots ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had cleared both, whether I use npm or yarn to install, the error still appears
@tafsiri Oh, it works at 1.4.3, thanks a lot