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

Line chart does not display data in Sample #17

Open
swrhim opened this issue Dec 1, 2020 · 1 comment
Open

Line chart does not display data in Sample #17

swrhim opened this issue Dec 1, 2020 · 1 comment

Comments

@swrhim
Copy link

swrhim commented Dec 1, 2020

When following the sample within the SAFE template, the line chart did not render and produced this error message in the browser console:

warning: React does not recognize the dataKey prop on a DOM element

There was a reference to an issue here. My code base had the open statement in the Index.fs file as below:

open System
open Elmish
open Fable.Core
open Fable.Remoting.Client
open Fable.Recharts
open Fable.Recharts.Props
open Fable.React
open Fable.React.Props

The workaround was to re-organize the open statements like so:

open System
open Elmish
open Fable.Core
open Fable.Remoting.Client
open Fable.React
open Fable.React.Props
open Fable.Recharts
open Fable.Recharts.Prop

This order rendered the line correctly

@alfonsogarciacaro
Copy link
Member

I'll try to look into why this happens but in the meanwhile thanks a lot for sharing your fix! 🏅

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

2 participants