ardave / Plot.Core

Cross-Platform Chart Generation Library for .NET Core
MIT License
14 stars 0 forks source link

README references `Plot.Core.FakeData.hourlyDataDateTimes` #1

Open brettrowberry opened 6 years ago

brettrowberry commented 6 years ago

In the sample given in the README,

open Plot.Core
open Plot.Core.LineChart
open SixLabors.ImageSharp

let series = {
        originalPoints = Plot.Core.FakeData.hourlyDataDateTimes
        title = "Air Passenger Data"
        lineStyle = { Color = Rgba32.Orange; Thickness = 2.f }
    }
let inflatedSeries = {
        originalPoints = Plot.Core.FakeData.hourlyDataDateTimes |> Array.map(fun op -> { op with y = op.y + 100. })
        title = "Inflated Air Passenger Data"
        lineStyle = { Color = Rgba32.LightBlue; Thickness = 2.f }
    }
let settings = Settings.createLineChartSettings "Air Passenger Data" 1500 500
let image = [series; inflatedSeries] |> createLineChart settings
image.Save "AirPassengerData.png"

I cloned the repository, built both the Plot.Core and Tests assemblies, and Plot.Core.FakeData.hourlyDataDateTimes is not defined anywhere I can see. There is a Plot.Core.FakeData.monthlyDataDateTimes in the Tests assembly.

My F# script adds these to the top:

#r "src/Plot.Core/bin/Debug/netstandard2.0/Plot.Core.dll"
#r "src/Tests/bin/Debug/netcoreapp2.0/Tests.dll"
#I "../../.nuget/packages"
#r "sixlabors.imagesharp/1.0.0-beta0003/lib/netstandard1.1/SixLabors.ImageSharp.dll"
#r "sixlabors.core/1.0.0-beta0005/lib/netstandard1.1/SixLabors.Core.dll"
ardave commented 6 years ago

I have never tried consuming this project from an .fsx context, but I will poke around at it in the next few days and see what I can come up with.