You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/11/14 21:50:20 UTC

[GitHub] [incubator-superset] suddjian edited a comment on issue #8524: Ability to display images/pdfs in the dashboard

suddjian edited a comment on issue #8524: Ability to display images/pdfs in the dashboard
URL: https://github.com/apache/incubator-superset/issues/8524#issuecomment-554095229
 
 
   @akashr050 I found a way to do this!
   
   The table chart type displays html. For a demo go to sql lab, enter the following, and then click Explore:
   
   ```
   SELECT
       '<a href="https://github.com/apache/incubator-superset">superset link</a>' as link,
       '<img src="https://media.giphy.com/media/lcySndwSDLxC4eOU86/giphy.gif" alt="panda" />' as img
   ```
   
   If you have a column of s3 links, you could do
   ```
   SELECT
     CONCAT('<img src="', s3_img_url, '" alt="s3 image" />') AS s3_img_html
   FROM my_table
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org