Create a bar chart using D3.js to display the revenue generated by each department of a company in the last quarter. Use gradient colors to differentiate between the bars and add a tooltip with the exact revenue value for each department. The chart should also have an X-axis with the name of the departments and a Y-axis with the revenue value.
This prompt doesn't seem malicious.