Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
192368d9
Commit
192368d9
authored
Sep 22, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gibiansky/IHaskell
parents
323a4cd9
c1e35a91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Charts.hs
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
+8
-2
No files found.
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
View file @
192368d9
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE NoImplicitPrelude
, CPP
#-}
module
IHaskell.Display.Charts
()
where
import
ClassyPrelude
...
...
@@ -35,7 +35,13 @@ chartData renderable format = do
-- Write the PNG image.
let
filename
=
".ihaskell-chart.png"
opts
=
def
{
_fo_format
=
format
,
_fo_size
=
(
width
,
height
)}
renderableToFile
opts
renderable
filename
toFile
=
renderableToFile
opts
#
if
MIN_VERSION_Chart_cairo
(
1
,
3
,
0
)
toFile
filename
renderable
#
else
toFile
renderable
filename
#
endif
-- Convert to base64.
imgData
<-
readFile
$
fpFromString
filename
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment