Coder Social home page Coder Social logo

Spline with Symbols about highcharter HOT 6 CLOSED

jbkunst avatar jbkunst commented on September 23, 2024
Spline with Symbols

from highcharter.

Comments (6)

jbkunst avatar jbkunst commented on September 23, 2024

OMG
I tested and tested some hacks like:

data <- data_frame(
  y = c(1,2,3,4,5,4,5),
  marker = list(symbol = "square")
)

data$marker[[3]] <- list(symbol = 'url(https://www.highcharts.com/samples/graphics/sun.png)')

ds <- list.parse2(data)

ds

hc <- highchart()
hc <- hc_title(hc, text = "A nice chart")
hc_add_series(hc, data = ds)

Which works, so its nice, but then I change the c by list and it WORKS 😌

hc <- highchart()
hc <- hc_title(hc, text = "A nice chart")
hc <- hc_add_series(hc, data = list(7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2,list(y= 26.5, marker=list(symbol='url(https://www.highcharts.com/samples/graphics/sun.png)'))))
hc

from highcharter.

TonyDIRL avatar TonyDIRL commented on September 23, 2024

Thanks, actually I think the hc_add_series_flags might be more useful.
There seems to be a bug with using OHLC bars and the placement of the flag:

x <- getSymbols("AAPL", auto.assign = FALSE);
dates <- as.Date(c("2007-01-08", "2007-01-10"),format = "%Y-%m-%d")
highchart() %>%  
 hc_add_series_ohlc(x, id = "AAPL")%>%
  hc_add_series_flags(dates,title = c("E1", "E2"), id = "AAPL") 

Also, I imagine the dates parameter of hc_add_series_flags will not allow it work with an intraday OHLC xts object

from highcharter.

jbkunst avatar jbkunst commented on September 23, 2024

This example works for you? http://jsfiddle.net/KDP87/14/

from highcharter.

TonyDIRL avatar TonyDIRL commented on September 23, 2024

That would be cool.

Click response would also be cool but I imagine that would require crosstalk :)

from highcharter.

jbkunst avatar jbkunst commented on September 23, 2024

What do you mean? Have you an example?

from highcharter.

TonyDIRL avatar TonyDIRL commented on September 23, 2024

Sorry, I was referencing the crosstalk work rstudio is working on. Thats outside the scope of this issue on hc_add_series_flags

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.