question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scatterplot.render bug

See original GitHub issue

tfjs-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:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xyx650commented, Jun 13, 2020

I had cleared both, whether I use npm or yarn to install, the error still appears

0reactions
xyx650commented, Jun 18, 2020

@tafsiri Oh, it works at 1.4.3, thanks a lot

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found