California Evidence Code Section 352 states, the court in its discretion may exclude evidence if its probative value is substantially outweighed by the probability that its admission will (a) necessitate undue consumption of time or (b) create substantial danger of undue prejudice, of confusing the issues, or of misleading the jury, https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?sectionNum=352.&lawCode=EVID.