Skip to content

Line chart does not display data in Sample #17

Description

@swrhim

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions