Can you do Los Angeles as a day trip from Anaheim?
Short answer: Yes. It is about 30 miles, and one well-planned day covers Griffith Observatory, Hollywood and Santa Monica.
The timing that makes it work
Leave Anaheim after 9:30 a.m., once the morning rush has passed.
Start at Griffith Observatory, move to Hollywood, and finish in Santa Monica for sunset.
Eat dinner there and drive back after 7 p.m.
Without a car
Metrolink and Amtrak run from the ARTIC station in Anaheim to Union Station in downtown Los Angeles. From there you will need transit or rideshare between sights.