Coder Social home page Coder Social logo

Comments (8)

jbkunst avatar jbkunst commented on June 27, 2024 1

Hi @reinholdsson,

knitr (https://github.com/yihui/knitr/blob/master/NEWS.md) will have a feature to generate a static image from a widget in non html documents using the https://github.com/wch/webshot. So I will close this issue and we can open if this feature/solution dont work with highcharter.

Kind regards,

from highcharter.

Bryant-zhu avatar Bryant-zhu commented on June 27, 2024 1

@jbkunst hey , what if I only what highcharter to be static on my html file ? thanks

from highcharter.

jbkunst avatar jbkunst commented on June 27, 2024

Hi @reinholdsson.

Interesting! Obviously this would be a really nice feature ;).

I'll check the link to see how it works and try to implement. I guess I'll ask some question if you dont mind 😅

Thanks

from highcharter.

reinholdsson avatar reinholdsson commented on June 27, 2024

@jbkunst Sounds great! Of course, I'm glad to help :)

from highcharter.

jbkunst avatar jbkunst commented on June 27, 2024

Hi @reinholdsson ,

Doy you know if exists a function to check if you're are knitting to pdf or html? I want to do something like this:

knit_print.highchart <- function(...){

  if( I knitting a html ) {
    knit_print.htmlwidget(...)
  } else {
    create_highchart_image(...)
  }

}

from highcharter.

reinholdsson avatar reinholdsson commented on June 27, 2024

@jbkunst see https://trinkerrstuff.wordpress.com/2014/11/18/rmarkdown-alter-action-depending-on-document/, seems to work!

from highcharter.

jbkunst avatar jbkunst commented on June 27, 2024

@reinholdsson tyvm!

It seems that your search skills are better than mine.

Thanks again!

from highcharter.

apuhegde avatar apuhegde commented on June 27, 2024

Hello, I'm using the pdf() function to save my plots in a pdf file when I run my R script on the command line (this is why I can't use RMarkdown/knittr). Does highcharter allow saving the charts to a static pdf using the pdf() function?

from highcharter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.