K 3 and k 4 graph colour

the graph colour is different in kibana 3 and 4. how do i colour it.

kibana 3 looks like this

same graph in kibana 4 looks like this

why there is no colour

In Kibana 4 bar charts, colors are based on the chart's legend, not its x-axis. A simple bar chart will use green for every bar because it's only displaying a single metric (in this case, Count) for a single dimension. If you were to break down the visualization with a sub-aggregation, you'd see additional colors which match the legend: