Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotly displays a chart with axes, but no data #54

Open
SBS-jtemplin opened this issue Feb 1, 2023 · 1 comment
Open

Plotly displays a chart with axes, but no data #54

SBS-jtemplin opened this issue Feb 1, 2023 · 1 comment

Comments

@SBS-jtemplin
Copy link

Hello,

I've implemented a little demo similar to the one in the readme.

import React, { ReactElement } from 'react';
import { View } from 'react-native';
import Plotly from 'react-native-plotly';


export const Chart = (): ReactElement => {
    const data = {
      x: [1, 2, 3, 4, 5],
      y: [1, 2, 3, 4, 8],
      type: 'scatter',
    };
    const layout = { title: 'My cool chart!' };
  
    return (
        <View
            style={{
                padding: 10,
                flex: 1,
            }}>
            <Plotly
                data={data}
                layout={layout}
                enableFullPlotly={true}
                debug={true}
            />
        </View>
    )
}

It appears to at least partially load Plotly. I can see an interactive chart with axes, but it doesn't plot any data. There are no errors in the console and the debug property doesn't show anything as far as I can tell. Do you know what might be causing the problem?

I'm using the following versions:
react-native 0.67.2
react-native-webview 11.26.1
react-native-windows 0.67.9

Thanks

@SBS-jtemplin
Copy link
Author

Also not working with the following versions:
react-native: 068.2
react-native-webview: 11.26.1
react-native-windows: 0.68.26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant