Skip to main content

All Questions

Tagged with
1 vote
1 answer
19 views

Strip plot chart using Vega-Lite

I am trying to get the count of each catagrogy and show as a data label in the right side. I seen an sample in linked and i tried to bring the same but somehow im not able to achieve it. Sample And ...
sen's user avatar
  • 75
1 vote
1 answer
45 views

Show y axis lines even though all values are zero

I am currently working on a grouped + stacked column chart in Vega. Is there a way to still display the y axis lines even with the data on both bars being all zero values? Let's say I still want it ...
anj's user avatar
  • 47
1 vote
1 answer
36 views

Vega chart center bar in dynamic number of columns

I am trying to make a clustered column chart in Vega where in if the values in the category are positive and negative, they are going to be stacked in one column but if the values in the category are ...
anj's user avatar
  • 47
1 vote
1 answer
22 views

y axis scale ticks for small decimal value in Vegalite

I am trying to create a chart in vegaLite having dual axis. Issue is that, the second y axis value are in decimal, if i do not use format for second y axis, then it simply makes format with 4 decimal ...
Mohit's user avatar
  • 355
1 vote
1 answer
24 views

First bar highlight by a specific color in VegaLite Bar chart

I want to create a bar chart in vegalite for top 10 performance students but highest score student at the starting must be with specific color rest all remain same . I want this independent of data ...
Mohit's user avatar
  • 355
2 votes
1 answer
40 views

Label wrapping with stacked bar charts

I'm attempting to split the label on the x axis in a vega-lite stacked bar chart so that the text wraps. Using the below, while the text does wrap, the rest of the chart breaks in a confusing way. (...
Cora Sutton's user avatar
3 votes
2 answers
116 views

Vega-lite Gradient: Specify Where the Color Changes Relative to the Axis Scale

I have a metric and want to show a gradient color in an area chart corresponding to good (0 to .1 = green), ok (>.1 to .3 = yellow), bad (> .3 = red) for that metric at various time points. How ...
Tyler Rinker's user avatar
2 votes
1 answer
108 views

Set the x axis limits (min and max) on categorical scale

How can I set the x limits (x min and x max) values on a categorical scale? I want to limit the space in the image below to have no white space. MWE { "data": { "values": [ ...
Tyler Rinker's user avatar
0 votes
1 answer
21 views

Concatenate Charts in Vega (rows, columns, grid)

I would like to create sub-vizualizations in Vega using the group mark. Below you will find a minimal example where the second plot is overlapping with the first one as it can be seen in the title. { ...
Butters's user avatar
  • 95
1 vote
1 answer
28 views

Vega Lite: Is there a way to have two layers on a folded graph

I'm using this as my reference - Link to Fold Example I'd like to not only have the bar chart but have another layer that shows the data labels too. (Like this - https://vega.github.io/vega-lite/...
WWDesigner's user avatar
0 votes
1 answer
40 views

Create JSON table schema structure

I want to create visualizations of JSON table schemas. These visualizations will be generated on the p5.js canvas. I've written some code for this task, including connections between schemas, dragging ...
absmj's user avatar
  • 1
1 vote
1 answer
30 views

Time and Date Data Incorrectly Plotted

my issue is that the link (displayed in the tooltip for trouble shooting) ends up in the wrong bar and the rest of the tooltip is fine. March has April's link. The links won't work in the sample but ...
keepTrackOfYourStack's user avatar
1 vote
1 answer
45 views

Attempting to place text marks at the same level on a bar chart

Using this spec I am attempting to create an actual vs budget chart where the values are printed at the same level above the bars. I suspect a better way to do it would involve layers but at the ...
Richard Davison's user avatar
1 vote
1 answer
23 views

Unable to set text color based on condition in vega specification

I have tried all the suggestions made by ChatGPT and every variation I can think of to get the following spec to work so that the text values will change color at the top of the chart. If you use the ...
Richard Davison's user avatar
1 vote
1 answer
25 views

Modulus operator in Vega

Is there a modulus operator for formula expressions in Vega? I have found a mod operator in most other languages and thought it would be a common place in any programmatic language. I have looked into ...
user24490517's user avatar

15 30 50 per page
1
2 3 4 5
17