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
df7625e8
Commit
df7625e8
authored
Mar 01, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replacing SVG with base64 encoded html+img tag for svg, closes #187
parent
4b4c233b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
334 deletions
+85
-334
Charts.hs
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
+3
-1
Test.ipynb
notebooks/Test.ipynb
+81
-332
Display.hs
src/IHaskell/Display.hs
+1
-1
No files found.
ihaskell-display/ihaskell-charts/IHaskell/Display/Charts.hs
View file @
df7625e8
...
...
@@ -43,4 +43,6 @@ chartData renderable format = do
imgData
<-
readFile
$
fpFromString
filename
return
$
case
format
of
PNG
->
png
width
height
$
base64
imgData
SVG
->
svg
$
Char
.
unpack
imgData
SVG
->
html
$
makeSvgImg
$
base64
imgData
where
makeSvgImg
base64data
=
Char
.
unpack
$
"<img src=
\"
data:image/svg+xml;base64,"
++
base64data
++
"
\"
/>"
notebooks/Test.ipynb
View file @
df7625e8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/IHaskell/Display.hs
View file @
df7625e8
...
...
@@ -3,7 +3,7 @@ module IHaskell.Display (
IHaskellDisplay
(
..
),
plain
,
html
,
png
,
jpg
,
svg
,
latex
,
serializeDisplay
,
Width
,
Height
,
Base64
,
Width
,
Height
,
Base64
(
..
)
,
encode64
,
base64
,
Display
(
..
),
DisplayData
(
..
),
...
...
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