Skip to content

Improved input editor for Timelion #8881

@rcrezende

Description

@rcrezende

Allowing multi-line and indentation would dramatically increase readability in Timelion expressions.
The way I'd love to see is the following:

(
    .es(timefield=timestamp, metric=cardinality:somefield.keyword)
    .label("Nice Label")
    .bars()
    .yaxis(yaxis=1,label="First Axis"),

    .es(timefield=timestamp, metric=sum:anotherfield)
    .divide(12)
    .label("Another Lable")
    .yaxis(yaxis=2, label="Secondary Axis")
)
.title("Graph Title")
.legend("ne")

Also, when editing a timeline visualization in Kibana, the left panel is too small and I'm forced to edit the expression in another editor and paste there. Maybe allowing the user to resize the split Editor/Visualization is ideal.

Syntax highlighting would also be very welcome

Metadata

Metadata

Assignees

Labels

Feature:TimelionTimelion app and visualizationFeature:VisualizationsGeneric visualization features (in case no more specific feature label is available)Team:Platform-DesignTeam Label for Kibana Design Team. Support the Analyze group of plugins.blockedrelease_note:enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions