@@ -383,25 +383,25 @@ module ChartExtensions =
383
383
384
384
385
385
/// Show chart in browser
386
- static member ShowWithDescription ( d : string ) ( ch : GenericChart ) =
386
+ static member ShowWithDescription ( show : bool ) ( d : string ) ( ch : GenericChart ) =
387
387
let guid = Guid.NewGuid() .ToString()
388
388
let html = GenericChart.toEmbeddedHtmlWithDescription d ch
389
389
let tempPath = Path.GetTempPath()
390
390
let file = sprintf " %s .html" guid
391
391
let path = Path.Combine( tempPath, file)
392
392
File.WriteAllText( path, html)
393
- System.Diagnostics.Process.Start( path) |> ignore
393
+ if show then System.Diagnostics.Process.Start( path) |> ignore
394
394
395
395
396
396
/// Saves chart in a specified file name and shows it in the browser. The caller is responsible for full path / filename / extension.
397
- static member ShowFileWithDescription ( fullFileName : string ) ( d : string ) ( ch : GenericChart ) =
397
+ static member ShowFileWithDescription ( show : bool ) ( fullFileName : string ) ( d : string ) ( ch : GenericChart ) =
398
398
let html = GenericChart.toEmbeddedHtmlWithDescription d ch
399
399
File.WriteAllText( fullFileName, html)
400
- System.Diagnostics.Process.Start( fullFileName) |> ignore
400
+ if show then System.Diagnostics.Process.Start( fullFileName) |> ignore
401
401
402
402
403
403
/// Show chart in browser
404
- static member Show ( ch : GenericChart ) = Chart.ShowWithDescription " " ch
404
+ static member Show ( ch : GenericChart ) = Chart.ShowWithDescription true " " ch
405
405
406
406
407
407
/// Show chart in browser
0 commit comments