Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds timeline #65

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

ValentinKaisermayer
Copy link
Contributor

However, I'm not sure if this is enough.

@AbhimanyuAryan
Copy link
Member

looks good thanks. I'll test an example and merge it asap :)

@ValentinKaisermayer
Copy link
Contributor Author

This seems not to be enough:

using GenieFramework
@genietools

tasks = PlotData(
    x_start = ["2023-01-01","2023-01-01"],
    x_end = ["2024-12-31","2023-09-30"],
    y = ["WP1", "WP2"],
    plot = StipplePlotly.Charts.PLOT_TYPE_TIMELINE,
)
    
milestones = PlotData(
    x = ["2023-03-30", "2023-06-30", "2023-09-30"],
    y = ["M2.1", "M2.2", "M2.3"],
    plot = StipplePlotly.Charts.PLOT_TYPE_SCATTER,
    orientation="h",
    mode="markers",
    marker=Dict("symbol"=>"diamond", "size"=>28),
    name = "Milestones",
)

@handlers begin
    @in data = [tasks, milestones]
    @in layout = PlotLayout()
end

function ui()
    [
        h1("GenieFramework 🧞 Gantt 📊")
        plot(:data, layout=:layout)
    ]
end

@page("/", ui)

Server.isrunning() || Server.up()

image

@AbhimanyuAryan
Copy link
Member

AbhimanyuAryan commented Apr 14, 2023

@ValentinKaisermayer aah I see. I will try on my side

@essenciary
Copy link
Member

@ValentinKaisermayer thanks for this and sorry for the lack of updates, we missed this.

@essenciary essenciary merged commit 36aee5e into GenieFramework:main Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants