If you have only just added the unit_of_measurement, the graph will not update until the window of history gets rid of the old non-unit-ed records.
Almost certainly unrelated, but your float filters should have default values: states(...)|float(0) for example, but be careful with using 0 on denominator values.
If you click “show more” from where you took your screenshot, you can constrain the graph to a shorter window, which should confirm that it will display as a line once the old values are shunted left.