-
Notifications
You must be signed in to change notification settings - Fork 70
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
Dll hardcoded dependencies on Newtonsoft.Json Google.DataTable.Net.Wrapper #87
Comments
I've tried it on windows with dotnet cli 2.2.402 and it worked. What's your environment? App.fsproj <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="XPlot.GoogleCharts" Version="2.0.0" />
</ItemGroup>
</Project> Program.fs // Learn more about F# at http://fsharp.org
open System
open XPlot.GoogleCharts
let sales = ["2013", 1000; "2014", 1170; "2015", 660; "2016", 1030]
let expenses = ["2013", 400; "2014", 460; "2015", 1120; "2016", 540]
let options =
Options(
title = "Company Performance",
hAxis =
Axis(
title = "Year",
titleTextStyle = TextStyle(color = "#333")
),
vAxis = Axis(minValue = 0)
)
[<EntryPoint>]
let main argv =
[sales; expenses]
|> Chart.Area
|> Chart.WithLabels ["Sales"; "Expenses"]
|> Chart.WithOptions options
|> Chart.Show
printfn "Hello World from F#!"
0 // return an integer exit code |
Sorry I forgot to say it's with |
I still use fsi under the old dotnet framework project setting that has locally installed Nuget packages. I need to reference each dlls using I do not know how to reference external Nuget packages in dotnet fsi yet. I hope it will work smoothly once this pull comes to official dotnet release |
These are issues with |
Link to Binder added to README here: https://github.com/fslaborg/XPlot#try-it-out You can expect F# 5.0/.NET 5.0 to have a local |
On latest offical dotnet .core 2.2.402,
If we either try to
Chart.Show
aXPlot.Plotly
it barfs with :Or a
XPlot.GoogleCharts
:I don't know what exactly could do this, I tried to rebuild myself with no change.
The text was updated successfully, but these errors were encountered: