Microsoft Power BI allows developers to use the declarative JSON syntax of the Vega or Vega-Lite languages to create highly customizable visuals. Vega and Vega-Lite are both languages for describing interactive data visualizations.

Here is a step-by-step guide for creating a custom visual in Power BI using the Deneb Vega-Lite custom visual.

{
  "data": {
    "name": "dataset"
  },
  "mark": {
    "type": "bar",
    "line": {
      "color": "darkgreen"
    },
    "color": "blue"
  },
  "encoding": {
    "x": {
      "field": "Month",
      "type": "nominal"
    },
    "y": {
      "field": "Sales",
      "type": "quantitative"
    }
  }
}

Now we will start advanced configuration.

For the Sorting, we will use.

"sort": {"field": "MonthNumber",  "order": "asc" }

For the tooltip

{
  "tooltip": [
    {
      "field": "Month",
      "type": "nominal"
    },
    {
      "field": "Sales",
      "type": "quantitative"
    }
  ],
  "color": {
    "x1": 1,
    "y1": 1,
    "x2": 1,
    "y2": 0,
    "gradient": "linear",
    "stops": [
      { "offset": 0, "color": "#000000" },
      { "offset": 1, "color": "Yellow" }
    ]
  }
}

Below are some images of the gradient bar chart.

Please note that the exact steps and options may change based on Power BI updates and the specific version you are using. Always refer to the latest Power BI documentation or resources for the most up-to-date information on creating custom Vega-Lite visualizations in Power BI.