tahahachana / fsplot Goto Github PK
View Code? Open in Web Editor NEWF# Data Visualization Library
Home Page: tahahachana.github.io/FsPlot/
F# Data Visualization Library
Home Page: tahahachana.github.io/FsPlot/
Running the following code:
#load ".../FsPlot.0.6.6/FsPlotBootstrap.fsx"
open FsPlot.Google.Charting
let sales = ["2010", 1300; "2011", 1470; "2012", 740; "2013", 1330]
let expenses = ["2010", 1000; "2011", 1170; "2012", 560; "2013", 1030]
let chart = [sales; expenses] |> Chart.Spline |> Chart.WithNames ["Sales"; "Expenses"] |> Chart.WithTitle "Company Performance" |> Chart.WithXTitle "Year" |> Chart.WithLegend true
yields the following error/exception:
Starting ChromeDriver 2.12.301325 (962dea43ddd90e7e4224a03fa3c36a421281abb7) on port 53919 Only local connections are allowed. System.InvalidOperationException: unknown error: cannot get automation extension from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"(F97776F2A8B40299F899C02DD54DF38E)","isDefault":true},"id":1,"name":"","origin":"chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb"}
As suggested here.
Sometimes the library fails to locate chromedriver.exe.
You can currently expose a chart via a static PNG or by taking the HTML generated from a chart. It would be good if you could take the HTML directly from a chart without opening/closing it; this would then allow you to e.g. expose charts directly in a website or somehow else in a running application (rather than through a script).
I have an F# 4.0 console app project in VS 2015 preview. Added FsPlot 0.6.6 via GUI NuGet wizard.
I do not see any .fsx scripts added to my project, as documented here.
Not sure if this is out-of-date docs, a bug in the package, or if I'm doing something wrong.
I'm going through the samples. Trying to create a basicArea chart. I get a blank window. Could you help me troubleshoot the issue?
I am trying to go through the examples so first tried to install the Nuget Package but it is coming up with "Operation Failed". The installation log seems to end with "External packages cannot depend on packages that target projects."
Any help would be much appreciated.
The full log trace is below:
Attempting to resolve dependency 'FunScript.TypeScript.Binding.jquery (= 1.1.0.37)'.
Attempting to resolve dependency 'FunScript.TypeScript.Binding.lib (≥ 1.1.0.37)'.
Attempting to resolve dependency 'FunScript (= 1.1.50)'.
Attempting to resolve dependency 'FunScript.TypeScript.Binding.highcharts (= 1.1.0.37)'.
Attempting to resolve dependency 'FunScript.TypeScript.Binding.signalr (= 1.1.0.37)'.
Attempting to resolve dependency 'FunScript.TypeScript.Binding.gapi (= 1.1.0.37)'.
Attempting to resolve dependency 'FunScript.TypeScript.Binding.google_visualization (= 1.1.0.37)'.
Attempting to resolve dependency 'Microsoft.AspNet.Cors (= 5.1.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.SignalR.Core (= 2.0.2)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.0)'.
Attempting to resolve dependency 'Owin (≥ 1.0)'.
Attempting to resolve dependency 'Microsoft.Owin (≥ 2.0.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Security (≥ 2.0.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.SignalR.JS (= 2.0.2)'.
Attempting to resolve dependency 'jQuery (≥ 1.6.4)'.
Attempting to resolve dependency 'Microsoft.Owin (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Cors (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Diagnostics (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Host.HttpListener (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Host.SystemWeb (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Hosting (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Security (= 2.1.0)'.
Attempting to resolve dependency 'Microsoft.Owin.SelfHost (= 2.1.0)'.
External packages cannot depend on packages that target projects.
Using the latest FSPlot with Google Charts, webdriver opens up a new browser window but nothing gets sent to it.
Is it possible to use FsPlot (in particular Highcharts Dynamic Charts) in a compiled project ?
I did a test including the path to chromedriver.exe at the beginning of my code :
let chromePath = System.IO.Path.Combine(__SOURCE_DIRECTORY__, "../../packages/FsPlot/Tools/")
FsPlot.Settings.FSPlotSettings.chromeDriverDirectory <- chromePath
But it failed with a :
Starting ChromeDriver 2.12.301325 (962dea43ddd90e7e4224a03fa3c36a421281abb7) on port 40146
Only local connections are allowed.
[0.006][SEVERE]: bind() returned an error: Error (0x13D) while retrieving error. (0x2740)
[0.007][WARNING]: Unknown error 10038 mapped to net::ERR_FAILED
[0.007][SEVERE]: Accept error: rv=-2
[0.007][WARNING]: Unknown error 10038 mapped to net::ERR_FAILED
Port not available. Exiting...
I don't know if it is relevant but I am using mono on a Ubuntu and the first run of the driver seemed to start wine by itself (I checked, the driver appears to function on my computeur).
There are no XML comments on any functions etc.; I know that there are lots of good examples on the website, but adding this would mean that many use cases for needing documentation could be solved at source directly in e.g. Visual Studio.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.